home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-01-09 | 236.9 KB | [STAK/WILD] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| HyperCard Stack (archive/hypercard)
| idMeta
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jan 9 07:00:00 1996, modified Tue Jan 9 07:00:00 1996, creator HyperCard, type HyperCard stack, 180224 bytes "Power Tools" , at 0x2c080 62097 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Mac HyperCard stack (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [STAK] |
macFileCreator | [WILD] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 6f 77 65 72 20 | 54 6f 6f 6c 73 00 00 00 |..Power |Tools...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 02 c0 00 00 | 00 f2 91 ad 18 09 40 ad |........|......@.|
|00000060| 18 09 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 11 48 00 00 |........|.....H..|
|00000080| 00 00 64 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..d.STAK|........|
|00000090| 00 00 00 0a 00 02 c0 00 | 00 00 64 00 00 00 00 00 |........|..d.....|
|000000a0| 00 00 00 00 00 00 00 03 | 00 00 0a 69 00 00 00 12 |........|...i....|
|000000b0| 00 00 0f 42 00 00 16 8d | 00 00 00 02 00 00 0d 60 |...B....|.......`|
|000000c0| 00 00 0d d3 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 01 22 20 15 02 30 60 03 | 02 30 60 03 02 35 20 02 |." ..0`.|.0`..5 .|
|000000f0| 2b c4 90 9f 00 00 00 00 | 01 30 01 40 02 86 03 40 |+.......|.0.@...@|
|00000100| 00 00 00 00 03 66 04 80 | 00 00 00 00 00 00 00 00 |.....f..|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 4d ec 00 00 13 1f | 01 56 02 00 00 00 00 00 |..M.....|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 22 00 00 00 22 00 |........|.."...".|
|00000350| 88 00 22 00 88 00 22 00 | cc 00 33 00 cc 00 33 00 |.."...".|..3...3.|
|00000360| cc 88 33 22 cc 88 33 22 | ee 88 bb 22 ee 88 bb 22 |..3"..3"|..."..."|
|00000370| ee cc bb 33 ee cc bb 33 | ff cc ff 33 ff cc ff 33 |...3...3|...3...3|
|00000380| ff ee ff bb ff ee ff bb | ff ff ff bb ff ff ff bb |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | 26 73 d9 9c 36 67 c9 9c |...].A..|&s..6g..|
|00000480| 00 02 aa 80 00 00 01 00 | 00 02 b3 80 00 00 0c 60 |........|.......`|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000690| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006a0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006b0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006c0| b0 b0 b0 b0 b0 b0 b0 0d | 50 6f 77 65 72 20 54 6f |........|Power To|
|000006d0| 6f 6c 73 20 53 74 61 63 | 6b 0d 56 65 72 73 69 6f |ols Stac|k.Versio|
|000006e0| 6e 20 32 2e 33 0d 0d a9 | 43 6f 70 79 72 69 67 68 |n 2.3...|Copyrigh|
|000006f0| 74 20 31 39 38 37 2d 31 | 39 39 31 2c 31 39 39 33 |t 1987-1|991,1993|
|00000700| 2d 31 39 39 36 20 62 79 | 20 41 70 70 6c 65 20 43 |-1996 by| Apple C|
|00000710| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 41 6c |omputer,| Inc..Al|
|00000720| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|00000730| 64 2e 0d 0d 54 48 45 20 | 4d 45 53 53 41 47 45 20 |d...THE |MESSAGE |
|00000740| 48 41 4e 44 4c 45 52 53 | 20 55 53 45 44 20 49 4e |HANDLERS| USED IN|
|00000750| 20 54 48 49 53 20 53 43 | 52 49 50 54 3a 0d 63 68 | THIS SC|RIPT:.ch|
|00000760| 65 63 6b 50 61 6c 65 74 | 74 65 73 41 6e 64 4d 65 |eckPalet|tesAndMe|
|00000770| 6e 75 73 2c 73 75 73 70 | 65 6e 64 53 74 61 63 6b |nus,susp|endStack|
|00000780| 2c 72 65 73 75 6d 65 53 | 74 61 63 6b 2c 6f 70 65 |,resumeS|tack,ope|
|00000790| 6e 53 74 61 63 6b 2c 63 | 6c 6f 73 65 53 74 61 63 |nStack,c|loseStac|
|000007a0| 6b 2c 0d 6f 70 65 6e 43 | 61 72 64 2c 67 6f 43 61 |k,.openC|ard,goCa|
|000007b0| 74 65 67 6f 72 69 65 73 | 2c 67 6f 4e 65 78 74 2c |tegories|,goNext,|
|000007c0| 67 6f 50 72 65 76 2c 62 | 73 2c 6c 73 2c 70 73 2c |goPrev,b|s,ls,ps,|
|000007d0| 64 6f 4d 65 6e 75 2c 6d | 61 6b 65 50 61 6c 65 74 |doMenu,m|akePalet|
|000007e0| 74 65 2c 0d 6b 69 6c 6c | 50 61 6c 65 74 74 65 2c |te,.kill|Palette,|
|000007f0| 70 6d 2c 70 6f 77 65 72 | 4d 65 6e 75 2c 73 6d 2c |pm,power|Menu,sm,|
|00000800| 64 6f 53 74 61 63 6b 73 | 4d 65 6e 75 2c 69 75 2c |doStacks|Menu,iu,|
|00000810| 64 6f 49 6e 55 73 65 4d | 65 6e 75 2c 73 74 61 72 |doInUseM|enu,star|
|00000820| 74 55 73 69 6e 67 2c 0d | 73 74 6f 70 55 73 69 6e |tUsing,.|stopUsin|
|00000830| 67 2c 67 6f 53 74 61 63 | 6b 2c 6c 6f 2c 6c 69 73 |g,goStac|k,lo,lis|
|00000840| 74 4f 62 6a 65 63 74 73 | 2c 77 6d 2c 77 69 6e 64 |tObjects|,wm,wind|
|00000850| 6f 77 4c 69 73 74 2c 77 | 69 6e 64 6f 77 49 6e 66 |owList,w|indowInf|
|00000860| 6f 2c 63 61 73 63 61 64 | 65 2c 0d 72 65 61 6c 69 |o,cascad|e,.reali|
|00000870| 67 6e 57 69 6e 64 6f 77 | 2c 66 61 69 6c 2c 63 6f |gnWindow|,fail,co|
|00000880| 6e 66 69 72 6d 2c 63 68 | 65 63 6b 47 72 6f 75 70 |nfirm,ch|eckGroup|
|00000890| 2c 75 6e 48 69 6c 69 74 | 65 50 61 6c 65 74 74 65 |,unHilit|ePalette|
|000008a0| 42 74 6e 2c 73 67 2c 0d | 73 74 61 72 74 47 72 6f |Btn,sg,.|startGro|
|000008b0| 75 70 69 6e 67 2c 77 69 | 74 68 69 6e 52 65 63 74 |uping,wi|thinRect|
|000008c0| 2c 6d 6f 76 65 4f 62 6a | 65 63 74 73 2c 61 6c 69 |,moveObj|ects,ali|
|000008d0| 67 6e 4f 62 6a 65 63 74 | 73 2c 73 70 61 63 65 4f |gnObject|s,spaceO|
|000008e0| 62 6a 65 63 74 73 2c 0d | 64 75 70 6c 69 63 61 74 |bjects,.|duplicat|
|000008f0| 65 4f 62 6a 65 63 74 73 | 2c 64 65 6c 65 74 65 4f |eObjects|,deleteO|
|00000900| 62 6a 65 63 74 73 2c 63 | 68 65 63 6b 41 75 74 68 |bjects,c|heckAuth|
|00000910| 6f 72 69 6e 67 2c 64 6f | 42 61 63 6b 67 72 6f 75 |oring,do|Backgrou|
|00000920| 6e 64 2c 0d 64 6f 43 61 | 6e 63 65 6c 2c 73 68 6f |nd,.doCa|ncel,sho|
|00000930| 77 45 78 70 6f 72 74 50 | 61 6c 65 74 74 65 2c 6b |wExportP|alette,k|
|00000940| 69 6c 6c 45 78 70 6f 72 | 74 50 61 6c 65 74 74 65 |illExpor|tPalette|
|00000950| 2c 73 65 74 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 0d |,setEnvi|ronment.|
|00000960| 0d 54 48 45 20 46 55 4e | 43 54 49 4f 4e 20 48 41 |.THE FUN|CTION HA|
|00000970| 4e 44 4c 45 52 53 20 55 | 53 45 44 20 49 4e 20 54 |NDLERS U|SED IN T|
|00000980| 48 49 53 20 53 43 52 49 | 50 54 3a 0d 73 74 72 69 |HIS SCRI|PT:.stri|
|00000990| 70 50 61 74 68 2c 77 72 | 6f 6e 67 53 74 61 63 6b |pPath,wr|ongStack|
|000009a0| 2c 73 74 61 63 6b 55 73 | 65 2c 69 74 65 6d 43 6c |,stackUs|e,itemCl|
|000009b0| 69 63 6b 65 64 2c 70 6f | 77 65 72 4d 65 6e 75 49 |icked,po|werMenuI|
|000009c0| 74 65 6d 73 2c 70 6f 77 | 65 72 4d 65 6e 75 4d 73 |tems,pow|erMenuMs|
|000009d0| 67 73 2c 0d 47 65 74 4c | 6f 6e 67 4e 61 6d 65 0d |gs,.GetL|ongName.|
|000009e0| 0d 22 2d 2d c6 22 20 69 | 6e 64 69 63 61 74 65 73 |."--." i|ndicates|
|000009f0| 20 73 74 72 69 6e 67 73 | 20 77 68 69 63 68 20 77 | strings| which w|
|00000a00| 69 6c 6c 20 6e 65 65 64 | 20 6c 6f 63 61 6c 69 7a |ill need| localiz|
|00000a10| 61 74 69 6f 6e 0d b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |ation...|........|
|00000a20| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000a30| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000a40| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000a50| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 0d 0d 2d |........|.......-|
|00000a60| 2d 2d 2d 2d 20 20 53 79 | 73 74 65 6d 20 48 61 6e |---- Sy|stem Han|
|00000a70| 64 6c 65 72 73 3a 20 20 | 2d 2d 2d 2d 2d 2d 2d 2d |dlers: |--------|
|00000a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 6f 6e |--------|----..on|
|00000aa0| 20 73 75 73 70 65 6e 64 | 53 74 61 63 6b 0d 67 6c | suspend|Stack.gl|
|00000ab0| 6f 62 61 6c 20 44 6f 6e | 74 53 68 6f 77 47 65 6e |obal Don|tShowGen|
|00000ac0| 65 72 61 6c 0d 69 66 20 | 77 72 6f 6e 67 53 74 61 |eral.if |wrongSta|
|00000ad0| 63 6b 28 29 20 74 68 65 | 6e 20 70 61 73 73 20 73 |ck() the|n pass s|
|00000ae0| 75 73 70 65 6e 64 53 74 | 61 63 6b 0d 2d 2d 20 4b |uspendSt|ack.-- K|
|00000af0| 69 6c 6c 50 61 6c 65 74 | 74 65 20 77 69 6c 6c 20 |illPalet|te will |
|00000b00| 63 61 6c 6c 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |call clo|se windo|
|00000b10| 77 20 77 68 69 63 68 20 | 77 69 6c 6c 20 73 65 6e |w which |will sen|
|00000b20| 64 20 74 68 65 20 64 69 | 73 6d 69 73 73 50 61 6c |d the di|smissPal|
|00000b30| 65 74 74 65 0d 2d 2d 20 | 6d 65 73 73 61 67 65 20 |ette.-- |message |
|00000b40| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 2e 20 49 |automati|cally. I|
|00000b50| 6e 20 74 68 65 20 63 61 | 73 65 20 6f 66 20 61 20 |n the ca|se of a |
|00000b60| 73 74 61 63 6b 20 73 75 | 73 70 65 6e 73 69 6f 6e |stack su|spension|
|00000b70| 2c 20 77 65 20 64 6f 6e | 27 74 0d 2d 2d 20 77 61 |, we don|'t.-- wa|
|00000b80| 6e 74 20 74 6f 20 64 65 | 73 74 6f 72 79 20 74 68 |nt to de|story th|
|00000b90| 65 20 47 65 6e 65 72 61 | 6c 20 50 61 6c 65 74 74 |e Genera|l Palett|
|00000ba0| 65 20 66 6f 72 65 76 65 | 72 20 77 68 69 63 68 20 |e foreve|r which |
|00000bb0| 69 73 20 77 68 61 74 20 | 64 69 73 6d 69 73 73 50 |is what |dismissP|
|00000bc0| 61 6c 65 74 74 65 0d 2d | 2d 20 77 61 6e 74 73 20 |alette.-|- wants |
|00000bd0| 74 6f 20 64 6f 2e 20 20 | 57 65 20 6a 75 73 74 20 |to do. |We just |
|00000be0| 77 61 6e 74 20 69 74 20 | 67 6f 6e 65 20 77 68 69 |want it |gone whi|
|00000bf0| 6c 65 20 77 65 20 61 72 | 65 20 73 75 73 70 65 6e |le we ar|e suspen|
|00000c00| 64 65 64 0d 2d 2d 20 74 | 68 75 73 20 77 65 20 68 |ded.-- t|hus we h|
|00000c10| 61 76 65 20 74 68 69 73 | 20 6b 6c 75 64 67 65 20 |ave this| kludge |
|00000c20| 66 6f 72 20 70 72 65 73 | 65 72 76 69 6e 67 20 74 |for pres|erving t|
|00000c30| 68 65 20 67 65 6e 65 72 | 61 6c 20 70 61 6c 65 74 |he gener|al palet|
|00000c40| 74 65 2e 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |te..if t|here is |
|00000c50| 61 20 77 69 6e 64 6f 77 | 20 22 47 65 6e 65 72 61 |a window| "Genera|
|00000c60| 6c 50 61 6c 65 74 74 65 | 22 0d 74 68 65 6e 20 69 |lPalette|".then i|
|00000c70| 66 20 74 68 65 20 76 69 | 73 69 62 6c 65 20 6f 66 |f the vi|sible of|
|00000c80| 20 77 69 6e 64 6f 77 20 | 22 47 65 6e 65 72 61 6c | window |"General|
|00000c90| 50 61 6c 65 74 74 65 22 | 20 74 68 65 6e 20 70 75 |Palette"| then pu|
|00000ca0| 74 20 74 72 75 65 20 69 | 6e 74 6f 20 73 61 76 65 |t true i|nto save|
|00000cb0| 50 61 6c 65 74 74 65 0d | 6b 69 6c 6c 50 61 6c 65 |Palette.|killPale|
|00000cc0| 74 74 65 0d 69 66 20 73 | 61 76 65 50 61 6c 65 74 |tte.if s|avePalet|
|00000cd0| 74 65 20 69 73 20 74 72 | 75 65 20 74 68 65 6e 20 |te is tr|ue then |
|00000ce0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 44 |put empt|y into D|
|00000cf0| 6f 6e 74 53 68 6f 77 47 | 65 6e 65 72 61 6c 0d 63 |ontShowG|eneral.c|
|00000d00| 68 65 63 6b 50 61 6c 65 | 74 74 65 73 41 6e 64 4d |heckPale|ttesAndM|
|00000d10| 65 6e 75 73 0d 70 61 73 | 73 20 73 75 73 70 65 6e |enus.pas|s suspen|
|00000d20| 64 53 74 61 63 6b 0d 65 | 6e 64 20 73 75 73 70 65 |dStack.e|nd suspe|
|00000d30| 6e 64 53 74 61 63 6b 0d | 0d 6f 6e 20 72 65 73 75 |ndStack.|.on resu|
|00000d40| 6d 65 53 74 61 63 6b 0d | 69 66 20 77 72 6f 6e 67 |meStack.|if wrong|
|00000d50| 53 74 61 63 6b 28 29 20 | 74 68 65 6e 20 70 61 73 |Stack() |then pas|
|00000d60| 73 20 72 65 73 75 6d 65 | 53 74 61 63 6b 0d 6d 61 |s resume|Stack.ma|
|00000d70| 6b 65 50 61 6c 65 74 74 | 65 0d 69 66 20 74 68 65 |kePalett|e.if the|
|00000d80| 72 65 20 69 73 20 61 20 | 63 64 20 22 53 74 61 63 |re is a |cd "Stac|
|00000d90| 6b 20 4d 65 6e 75 73 22 | 20 74 68 65 6e 0d 69 66 |k Menus"| then.if|
|00000da0| 20 28 68 69 6c 69 74 65 | 20 6f 66 20 63 64 20 62 | (hilite| of cd b|
|00000db0| 74 6e 20 69 64 20 38 20 | 6f 66 20 63 64 20 22 53 |tn id 8 |of cd "S|
|00000dc0| 74 61 63 6b 20 4d 65 6e | 75 73 22 29 20 74 68 65 |tack Men|us") the|
|00000dd0| 6e 20 70 6f 77 65 72 4d | 65 6e 75 0d 65 6e 64 20 |n powerM|enu.end |
|00000de0| 69 66 0d 73 65 74 45 6e | 76 69 72 6f 6e 6d 65 6e |if.setEn|vironmen|
|00000df0| 74 0d 70 61 73 73 20 72 | 65 73 75 6d 65 53 74 61 |t.pass r|esumeSta|
|00000e00| 63 6b 0d 65 6e 64 20 72 | 65 73 75 6d 65 53 74 61 |ck.end r|esumeSta|
|00000e10| 63 6b 0d 0d 6f 6e 20 63 | 6c 6f 73 65 53 74 61 63 |ck..on c|loseStac|
|00000e20| 6b 0d 69 66 20 77 72 6f | 6e 67 53 74 61 63 6b 28 |k.if wro|ngStack(|
|00000e30| 29 20 74 68 65 6e 20 70 | 61 73 73 20 63 6c 6f 73 |) then p|ass clos|
|00000e40| 65 53 74 61 63 6b 0d 6b | 69 6c 6c 50 61 6c 65 74 |eStack.k|illPalet|
|00000e50| 74 65 0d 63 68 65 63 6b | 50 61 6c 65 74 74 65 73 |te.check|Palettes|
|00000e60| 41 6e 64 4d 65 6e 75 73 | 0d 70 61 73 73 20 63 6c |AndMenus|.pass cl|
|00000e70| 6f 73 65 53 74 61 63 6b | 0d 65 6e 64 20 63 6c 6f |oseStack|.end clo|
|00000e80| 73 65 53 74 61 63 6b 0d | 0d 6f 6e 20 6f 70 65 6e |seStack.|.on open|
|00000e90| 43 61 72 64 0d 69 66 20 | 77 72 6f 6e 67 53 74 61 |Card.if |wrongSta|
|00000ea0| 63 6b 28 29 20 74 68 65 | 6e 20 70 61 73 73 20 6f |ck() the|n pass o|
|00000eb0| 70 65 6e 43 61 72 64 0d | 6d 61 6b 65 50 61 6c 65 |penCard.|makePale|
|00000ec0| 74 74 65 0d 70 61 73 73 | 20 6f 70 65 6e 43 61 72 |tte.pass| openCar|
|00000ed0| 64 0d 65 6e 64 20 6f 70 | 65 6e 43 61 72 64 0d 0d |d.end op|enCard..|
|00000ee0| 6f 6e 20 6f 70 65 6e 53 | 74 61 63 6b 0d 69 66 20 |on openS|tack.if |
|00000ef0| 77 72 6f 6e 67 53 74 61 | 63 6b 28 29 20 74 68 65 |wrongSta|ck() the|
|00000f00| 6e 20 70 61 73 73 20 6f | 70 65 6e 53 74 61 63 6b |n pass o|penStack|
|00000f10| 0d 69 66 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |.if shor|t name o|
|00000f20| 66 20 74 68 69 73 20 63 | 64 20 69 73 20 22 54 6f |f this c|d is "To|
|00000f30| 70 69 63 73 22 20 74 68 | 65 6e 20 73 6e 0d 69 66 |pics" th|en sn.if|
|00000f40| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00000f50| 20 22 53 74 61 63 6b 73 | 22 20 74 68 65 6e 20 64 | "Stacks|" then d|
|00000f60| 6f 53 74 61 63 6b 73 4d | 65 6e 75 20 2d 2d 20 c6 |oStacksM|enu -- .|
|00000f70| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 63 |.if ther|e is a c|
|00000f80| 64 20 22 53 74 61 63 6b | 20 4d 65 6e 75 73 22 20 |d "Stack| Menus" |
|00000f90| 74 68 65 6e 0d 69 66 20 | 28 68 69 6c 69 74 65 20 |then.if |(hilite |
|00000fa0| 6f 66 20 63 64 20 62 74 | 6e 20 69 64 20 38 20 6f |of cd bt|n id 8 o|
|00000fb0| 66 20 63 64 20 22 53 74 | 61 63 6b 20 4d 65 6e 75 |f cd "St|ack Menu|
|00000fc0| 73 22 29 20 74 68 65 6e | 20 70 6f 77 65 72 4d 65 |s") then| powerMe|
|00000fd0| 6e 75 0d 65 6e 64 20 69 | 66 0d 73 65 74 45 6e 76 |nu.end i|f.setEnv|
|00000fe0| 69 72 6f 6e 6d 65 6e 74 | 0d 70 61 73 73 20 6f 70 |ironment|.pass op|
|00000ff0| 65 6e 53 74 61 63 6b 0d | 65 6e 64 20 6f 70 65 6e |enStack.|end open|
|00001000| 53 74 61 63 6b 0d 0d 6f | 6e 20 73 65 74 45 6e 76 |Stack..o|n setEnv|
|00001010| 69 72 6f 6e 6d 65 6e 74 | 20 2d 2d 20 73 65 74 20 |ironment| -- set |
|00001020| 75 70 20 74 6f 20 75 73 | 65 20 66 75 6e 63 74 69 |up to us|e functi|
|00001030| 6f 6e 73 20 69 6e 20 73 | 74 61 63 6b 0d 63 68 6f |ons in s|tack.cho|
|00001040| 6f 73 65 20 62 72 6f 77 | 73 65 20 74 6f 6f 6c 0d |ose brow|se tool.|
|00001050| 73 65 74 20 65 64 69 74 | 42 6b 67 6e 64 20 74 6f |set edit|Bkgnd to|
|00001060| 20 66 61 6c 73 65 0d 73 | 65 74 20 75 73 65 72 4c | false.s|et userL|
|00001070| 65 76 65 6c 20 74 6f 20 | 35 0d 65 6e 64 20 73 65 |evel to |5.end se|
|00001080| 74 45 6e 76 69 72 6f 6e | 6d 65 6e 74 0d 0d 2d 2d |tEnviron|ment..--|
|00001090| 2d 2d 2d 20 20 4e 61 76 | 69 67 61 74 69 6f 6e 20 |--- Nav|igation |
|000010a0| 48 61 6e 64 6c 65 72 73 | 3a 20 20 2d 2d 2d 2d 2d |Handlers|: -----|
|000010b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000010c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000010d0| 0d 6f 6e 20 67 6f 43 61 | 74 65 67 6f 72 69 65 73 |.on goCa|tegories|
|000010e0| 0d 76 69 73 75 61 6c 20 | 65 66 66 65 63 74 20 62 |.visual |effect b|
|000010f0| 61 72 6e 20 64 6f 6f 72 | 20 6f 70 65 6e 0d 67 6f |arn door| open.go|
|00001100| 20 63 64 20 31 0d 65 6e | 64 20 67 6f 43 61 74 65 | cd 1.en|d goCate|
|00001110| 67 6f 72 69 65 73 0d 0d | 6f 6e 20 67 6f 4e 65 78 |gories..|on goNex|
|00001120| 74 0d 76 69 73 75 61 6c | 20 65 66 66 65 63 74 20 |t.visual| effect |
|00001130| 73 63 72 6f 6c 6c 20 6c | 65 66 74 0d 67 6f 20 6e |scroll l|eft.go n|
|00001140| 65 78 74 0d 65 6e 64 20 | 67 6f 4e 65 78 74 0d 0d |ext.end |goNext..|
|00001150| 6f 6e 20 67 6f 50 72 65 | 76 0d 76 69 73 75 61 6c |on goPre|v.visual|
|00001160| 20 65 66 66 65 63 74 20 | 73 63 72 6f 6c 6c 20 72 | effect |scroll r|
|00001170| 69 67 68 74 0d 67 6f 20 | 70 72 65 76 0d 65 6e 64 |ight.go |prev.end|
|00001180| 20 67 6f 50 72 65 76 0d | 0d 2d 2d 2d 2d 2d 20 20 | goPrev.|.----- |
|00001190| 55 74 69 6c 69 74 79 20 | 48 61 6e 64 6c 65 72 73 |Utility |Handlers|
|000011a0| 3a 20 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |: -----|--------|
|000011b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000011c0| 2d 2d 2d 2d 2d 2d 2d 0d | 0d 66 75 6e 63 74 69 6f |-------.|.functio|
|000011d0| 6e 20 73 74 72 69 70 50 | 61 74 68 20 70 61 74 68 |n stripP|ath path|
|000011e0| 0d 2d 2d 20 67 69 76 65 | 6e 20 74 68 65 20 70 61 |.-- give|n the pa|
|000011f0| 74 68 2c 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |th, retu|rns the |
|00001200| 73 68 6f 72 74 20 73 74 | 61 63 6b 20 6e 61 6d 65 |short st|ack name|
|00001210| 0d 67 65 74 20 6c 65 6e | 67 74 68 28 70 61 74 68 |.get len|gth(path|
|00001220| 29 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 69 20 |).repeat| with i |
|00001230| 3d 20 69 74 20 64 6f 77 | 6e 20 74 6f 20 31 0d 69 |= it dow|n to 1.i|
|00001240| 66 20 63 68 61 72 20 69 | 20 6f 66 20 70 61 74 68 |f char i| of path|
|00001250| 20 3d 20 22 3a 22 0d 74 | 68 65 6e 20 72 65 74 75 | = ":".t|hen retu|
|00001260| 72 6e 20 63 68 61 72 20 | 28 69 2b 31 29 20 74 6f |rn char |(i+1) to|
|00001270| 20 69 74 20 6f 66 20 70 | 61 74 68 0d 65 6e 64 20 | it of p|ath.end |
|00001280| 72 65 70 65 61 74 0d 65 | 6e 64 20 73 74 72 69 70 |repeat.e|nd strip|
|00001290| 50 61 74 68 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 77 |Path..fu|nction w|
|000012a0| 72 6f 6e 67 53 74 61 63 | 6b 0d 67 65 74 20 74 68 |rongStac|k.get th|
|000012b0| 65 20 76 61 6c 75 65 20 | 6f 66 20 28 77 6f 72 64 |e value |of (word|
|000012c0| 20 32 20 6f 66 20 28 74 | 68 65 20 6c 6f 6e 67 20 | 2 of (t|he long |
|000012d0| 6e 61 6d 65 20 6f 66 20 | 6d 65 29 29 0d 72 65 74 |name of |me)).ret|
|000012e0| 75 72 6e 20 28 69 74 20 | 69 73 20 6e 6f 74 20 6c |urn (it |is not l|
|000012f0| 69 6e 65 20 31 20 6f 66 | 20 74 68 65 20 73 74 61 |ine 1 of| the sta|
|00001300| 63 6b 73 29 0d 65 6e 64 | 20 77 72 6f 6e 67 53 74 |cks).end| wrongSt|
|00001310| 61 63 6b 0d 0d 66 75 6e | 63 74 69 6f 6e 20 73 74 |ack..fun|ction st|
|00001320| 61 63 6b 55 73 65 0d 67 | 65 74 20 74 68 65 20 76 |ackUse.g|et the v|
|00001330| 61 6c 75 65 20 6f 66 20 | 77 6f 72 64 20 32 20 6f |alue of |word 2 o|
|00001340| 66 20 74 68 65 20 6c 6f | 6e 67 20 6e 61 6d 65 20 |f the lo|ng name |
|00001350| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 0d 72 65 |of this |stack.re|
|00001360| 74 75 72 6e 20 28 69 74 | 20 69 73 20 69 6e 20 74 |turn (it| is in t|
|00001370| 68 65 20 73 74 61 63 6b | 73 49 6e 55 73 65 29 0d |he stack|sInUse).|
|00001380| 65 6e 64 20 73 74 61 63 | 6b 55 73 65 0d 0d 6f 6e |end stac|kUse..on|
|00001390| 20 63 68 65 63 6b 50 61 | 6c 65 74 74 65 73 41 6e | checkPa|lettesAn|
|000013a0| 64 4d 65 6e 75 73 0d 69 | 66 20 73 74 61 63 6b 55 |dMenus.i|f stackU|
|000013b0| 73 65 28 29 20 69 73 20 | 22 74 72 75 65 22 20 74 |se() is |"true" t|
|000013c0| 68 65 6e 20 65 78 69 74 | 20 63 68 65 63 6b 50 61 |hen exit| checkPa|
|000013d0| 6c 65 74 74 65 73 41 6e | 64 4d 65 6e 75 73 0d 70 |lettesAn|dMenus.p|
|000013e0| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 73 74 |ut empty| into st|
|000013f0| 61 74 75 73 43 68 65 63 | 6b 0d 70 75 74 20 22 53 |atusChec|k.put "S|
|00001400| 75 70 65 72 20 47 72 6f | 75 70 65 72 2c 57 69 6e |uper Gro|uper,Win|
|00001410| 64 6f 77 20 4d 67 72 2e | 22 20 69 6e 74 6f 20 74 |dow Mgr.|" into t|
|00001420| 68 65 57 69 6e 64 6f 77 | 73 20 2d 2d 20 c6 0d 70 |heWindow|s -- ..p|
|00001430| 75 74 20 22 50 6f 77 65 | 72 2c 53 74 61 63 6b 73 |ut "Powe|r,Stacks|
|00001440| 2c 49 6e 55 73 65 22 20 | 69 6e 74 6f 20 74 68 65 |,InUse" |into the|
|00001450| 4d 65 6e 75 73 20 2d 2d | 20 c6 0d 72 65 70 65 61 |Menus --| ..repea|
|00001460| 74 20 77 69 74 68 20 69 | 20 3d 20 31 20 74 6f 20 |t with i| = 1 to |
|00001470| 32 0d 69 66 20 28 69 74 | 65 6d 20 69 20 6f 66 20 |2.if (it|em i of |
|00001480| 74 68 65 57 69 6e 64 6f | 77 73 29 20 69 73 20 69 |theWindo|ws) is i|
|00001490| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 73 0d 74 68 |n the wi|ndows.th|
|000014a0| 65 6e 20 70 75 74 20 22 | 66 6f 75 6e 64 4f 6e 65 |en put "|foundOne|
|000014b0| 22 20 69 6e 74 6f 20 73 | 74 61 74 75 73 43 68 65 |" into s|tatusChe|
|000014c0| 63 6b 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 72 65 |ck.end r|epeat.re|
|000014d0| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000014e0| 74 6f 20 33 0d 69 66 20 | 74 68 65 72 65 20 69 73 |to 3.if |there is|
|000014f0| 20 61 20 6d 65 6e 75 20 | 28 69 74 65 6d 20 69 20 | a menu |(item i |
|00001500| 6f 66 20 74 68 65 4d 65 | 6e 75 73 29 0d 74 68 65 |of theMe|nus).the|
|00001510| 6e 20 70 75 74 20 22 66 | 6f 75 6e 64 4f 6e 65 22 |n put "f|oundOne"|
|00001520| 20 69 6e 74 6f 20 73 74 | 61 74 75 73 43 68 65 63 | into st|atusChec|
|00001530| 6b 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |k.end re|peat.if |
|00001540| 73 74 61 74 75 73 43 68 | 65 63 6b 20 69 73 20 22 |statusCh|eck is "|
|00001550| 66 6f 75 6e 64 4f 6e 65 | 22 20 74 68 65 6e 0d 61 |foundOne|" then.a|
|00001560| 6e 73 77 65 72 20 22 49 | 66 20 79 6f 75 20 77 69 |nswer "I|f you wi|
|00001570| 73 68 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 20 75 |sh to co|ntinue u|
|00001580| 73 69 6e 67 20 74 68 65 | 20 70 6f 77 65 72 22 20 |sing the| power" |
|00001590| 26 26 20 c2 0d 22 74 6f | 6f 6c 73 20 77 68 69 63 |&& .."to|ols whic|
|000015a0| 68 20 61 72 65 20 6f 70 | 65 6e 20 74 68 65 6e 20 |h are op|en then |
|000015b0| 74 68 69 73 20 73 74 61 | 63 6b 20 6d 75 73 74 20 |this sta|ck must |
|000015c0| 62 65 22 20 26 26 20 c2 | 0d 22 69 6e 73 74 61 6c |be" && .|."instal|
|000015d0| 6c 65 64 20 69 6e 20 74 | 68 65 20 6d 65 73 73 61 |led in t|he messa|
|000015e0| 67 65 20 70 61 73 73 69 | 6e 67 20 68 69 65 72 61 |ge passi|ng hiera|
|000015f0| 72 63 68 79 2e 22 c2 20 | 2d 2d 20 c6 0d 77 69 74 |rchy.". |-- ..wit|
|00001600| 68 20 22 51 75 69 74 20 | 54 6f 6f 6c 73 22 20 6f |h "Quit |Tools" o|
|00001610| 72 20 22 49 6e 73 74 61 | 6c 6c 22 20 2d 2d 20 c6 |r "Insta|ll" -- .|
|00001620| 0d 69 66 20 69 74 20 69 | 73 20 22 49 6e 73 74 61 |.if it i|s "Insta|
|00001630| 6c 6c 22 20 74 68 65 6e | 0d 73 74 61 72 74 20 75 |ll" then|.start u|
|00001640| 73 69 6e 67 20 74 68 69 | 73 20 73 74 61 63 6b 0d |sing thi|s stack.|
|00001650| 64 6f 49 6e 55 73 65 4d | 65 6e 75 0d 65 6c 73 65 |doInUseM|enu.else|
|00001660| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00001670| 20 31 20 74 6f 20 32 0d | 69 66 20 28 69 74 65 6d | 1 to 2.|if (item|
|00001680| 20 69 20 6f 66 20 74 68 | 65 57 69 6e 64 6f 77 73 | i of th|eWindows|
|00001690| 29 20 69 73 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |) is in |the wind|
|000016a0| 6f 77 73 0d 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |ows.then| close w|
|000016b0| 69 6e 64 6f 77 20 28 69 | 74 65 6d 20 69 20 6f 66 |indow (i|tem i of|
|000016c0| 20 74 68 65 57 69 6e 64 | 6f 77 73 29 0d 65 6e 64 | theWind|ows).end|
|000016d0| 20 72 65 70 65 61 74 0d | 72 65 70 65 61 74 20 77 | repeat.|repeat w|
|000016e0| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 33 0d 69 |ith i = |1 to 3.i|
|000016f0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6d 65 6e |f there |is a men|
|00001700| 75 20 28 69 74 65 6d 20 | 69 20 6f 66 20 74 68 65 |u (item |i of the|
|00001710| 4d 65 6e 75 73 29 0d 74 | 68 65 6e 20 64 65 6c 65 |Menus).t|hen dele|
|00001720| 74 65 20 6d 65 6e 75 20 | 28 69 74 65 6d 20 69 20 |te menu |(item i |
|00001730| 6f 66 20 74 68 65 4d 65 | 6e 75 73 29 0d 65 6e 64 |of theMe|nus).end|
|00001740| 20 72 65 70 65 61 74 0d | 65 6e 64 20 69 66 0d 65 | repeat.|end if.e|
|00001750| 6e 64 20 69 66 0d 65 6e | 64 20 63 68 65 63 6b 50 |nd if.en|d checkP|
|00001760| 61 6c 65 74 74 65 73 41 | 6e 64 4d 65 6e 75 73 0d |alettesA|ndMenus.|
|00001770| 0d 2d 2d 2d 2d 2d 20 20 | 4d 65 6e 75 20 43 6f 6e |.----- |Menu Con|
|00001780| 74 72 6f 6c 20 48 61 6e | 64 6c 65 72 73 3a 20 20 |trol Han|dlers: |
|00001790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017b0| 2d 2d 2d 2d 0d 0d 6f 6e | 20 62 73 0d 64 6f 4d 65 |----..on| bs.doMe|
|000017c0| 6e 75 20 22 42 72 75 73 | 68 20 53 68 61 70 65 2e |nu "Brus|h Shape.|
|000017d0| 2e 2e 22 20 2d 2d 20 c6 | 0d 65 6e 64 20 62 73 0d |.." -- .|.end bs.|
|000017e0| 0d 6f 6e 20 6c 73 0d 64 | 6f 4d 65 6e 75 20 22 4c |.on ls.d|oMenu "L|
|000017f0| 69 6e 65 20 53 69 7a 65 | 2e 2e 2e 22 20 2d 2d 20 |ine Size|..." -- |
|00001800| c6 0d 65 6e 64 20 6c 73 | 0d 0d 6f 6e 20 70 73 0d |..end ls|..on ps.|
|00001810| 64 6f 4d 65 6e 75 20 22 | 50 6f 6c 79 67 6f 6e 20 |doMenu "|Polygon |
|00001820| 53 69 64 65 73 2e 2e 2e | 22 20 2d 2d 20 c6 0d 65 |Sides...|" -- ..e|
|00001830| 6e 64 20 70 73 0d 0d 6f | 6e 20 64 6f 4d 65 6e 75 |nd ps..o|n doMenu|
|00001840| 20 74 68 65 4d 65 6e 75 | 49 74 65 6d 0d 69 66 20 | theMenu|Item.if |
|00001850| 74 68 65 4d 65 6e 75 49 | 74 65 6d 20 69 73 20 22 |theMenuI|tem is "|
|00001860| 42 72 75 73 68 20 53 68 | 61 70 65 2e 2e 2e 22 20 |Brush Sh|ape..." |
|00001870| 74 68 65 6e 20 2d 2d c6 | 0d 70 61 69 6e 74 50 61 |then --.|.paintPa|
|00001880| 6c 65 74 74 65 20 22 42 | 72 75 73 68 20 53 68 61 |lette "B|rush Sha|
|00001890| 70 65 73 22 0d 65 6c 73 | 65 20 69 66 20 74 68 65 |pes".els|e if the|
|000018a0| 4d 65 6e 75 49 74 65 6d | 20 69 73 20 22 4c 69 6e |MenuItem| is "Lin|
|000018b0| 65 20 53 69 7a 65 2e 2e | 2e 22 20 74 68 65 6e 20 |e Size..|." then |
|000018c0| 2d 2d c6 0d 70 61 69 6e | 74 50 61 6c 65 74 74 65 |--..pain|tPalette|
|000018d0| 20 22 4c 69 6e 65 20 53 | 69 7a 65 73 22 0d 65 6c | "Line S|izes".el|
|000018e0| 73 65 20 69 66 20 74 68 | 65 4d 65 6e 75 49 74 65 |se if th|eMenuIte|
|000018f0| 6d 20 69 73 20 22 50 6f | 6c 79 67 6f 6e 20 53 69 |m is "Po|lygon Si|
|00001900| 64 65 73 2e 2e 2e 22 20 | 74 68 65 6e 20 2d 2d c6 |des..." |then --.|
|00001910| 0d 70 61 69 6e 74 50 61 | 6c 65 74 74 65 20 22 50 |.paintPa|lette "P|
|00001920| 6f 6c 79 20 53 68 61 70 | 65 73 22 0d 65 6c 73 65 |oly Shap|es".else|
|00001930| 20 69 66 20 28 74 68 65 | 4d 65 6e 75 49 74 65 6d | if (the|MenuItem|
|00001940| 20 69 73 20 22 43 6f 6d | 70 61 63 74 20 53 74 61 | is "Com|pact Sta|
|00001950| 63 6b 22 29 20 74 68 65 | 6e 0d 69 66 20 6e 6f 74 |ck") the|n.if not|
|00001960| 20 77 72 6f 6e 67 53 74 | 61 63 6b 28 29 20 74 68 | wrongSt|ack() th|
|00001970| 65 6e 20 2d 2d c6 0d 63 | 6f 6d 70 61 63 74 54 68 |en --..c|ompactTh|
|00001980| 69 73 53 74 61 63 6b 0d | 65 6c 73 65 20 70 61 73 |isStack.|else pas|
|00001990| 73 20 64 6f 4d 65 6e 75 | 0d 65 6c 73 65 20 70 61 |s doMenu|.else pa|
|000019a0| 73 73 20 64 6f 4d 65 6e | 75 0d 65 6e 64 20 64 6f |ss doMen|u.end do|
|000019b0| 4d 65 6e 75 0d 0d 6f 6e | 20 70 61 69 6e 74 50 61 |Menu..on| paintPa|
|000019c0| 6c 65 74 74 65 20 74 68 | 65 50 61 6c 65 74 74 65 |lette th|ePalette|
|000019d0| 0d 69 66 20 74 68 65 50 | 61 6c 65 74 74 65 20 69 |.if theP|alette i|
|000019e0| 73 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 73 |s in the| windows|
|000019f0| 20 74 68 65 6e 20 63 6c | 6f 73 65 20 77 69 6e 64 | then cl|ose wind|
|00001a00| 6f 77 20 74 68 65 50 61 | 6c 65 74 74 65 0d 69 66 |ow thePa|lette.if|
|00001a10| 20 74 68 65 50 61 6c 65 | 74 74 65 20 69 73 20 22 | thePale|tte is "|
|00001a20| 42 72 75 73 68 20 53 68 | 61 70 65 73 22 20 74 68 |Brush Sh|apes" th|
|00001a30| 65 6e 20 2d 2d 20 c6 0d | 70 75 74 20 28 74 68 65 |en -- ..|put (the|
|00001a40| 20 62 72 75 73 68 29 20 | 69 6e 74 6f 20 74 68 69 | brush) |into thi|
|00001a50| 73 42 75 74 74 6f 6e 0d | 65 6c 73 65 20 69 66 20 |sButton.|else if |
|00001a60| 74 68 65 50 61 6c 65 74 | 74 65 20 69 73 20 22 4c |thePalet|te is "L|
|00001a70| 69 6e 65 20 53 69 7a 65 | 73 22 20 74 68 65 6e 20 |ine Size|s" then |
|00001a80| 2d 2d 20 c6 0d 70 75 74 | 20 69 74 65 6d 20 28 74 |-- ..put| item (t|
|00001a90| 68 65 20 6c 69 6e 65 53 | 69 7a 65 29 20 6f 66 20 |he lineS|ize) of |
|00001aa0| 22 31 2c 32 2c 33 2c 34 | 2c 2c 35 2c 2c 36 22 20 |"1,2,3,4|,,5,,6" |
|00001ab0| 69 6e 74 6f 20 74 68 69 | 73 42 75 74 74 6f 6e 0d |into thi|sButton.|
|00001ac0| 65 6c 73 65 20 69 66 20 | 74 68 65 50 61 6c 65 74 |else if |thePalet|
|00001ad0| 74 65 20 69 73 20 22 50 | 6f 6c 79 20 53 68 61 70 |te is "P|oly Shap|
|00001ae0| 65 73 22 20 74 68 65 6e | 20 2d 2d 20 c6 0d 70 75 |es" then| -- ..pu|
|00001af0| 74 20 69 74 65 6d 20 28 | 74 68 65 20 50 6f 6c 79 |t item (|the Poly|
|00001b00| 53 69 64 65 73 20 2b 20 | 31 29 20 6f 66 20 22 36 |Sides + |1) of "6|
|00001b10| 2c 2c 2c 31 2c 32 2c 33 | 2c 34 2c 2c 35 22 20 69 |,,,1,2,3|,4,,5" i|
|00001b20| 6e 74 6f 20 74 68 69 73 | 42 75 74 74 6f 6e 0d 65 |nto this|Button.e|
|00001b30| 6e 64 20 69 66 0d 50 61 | 6c 65 74 74 65 20 74 68 |nd if.Pa|lette th|
|00001b40| 65 50 61 6c 65 74 74 65 | 0d 69 66 20 74 68 65 50 |ePalette|.if theP|
|00001b50| 61 6c 65 74 74 65 20 69 | 73 20 69 6e 20 74 68 65 |alette i|s in the|
|00001b60| 20 77 69 6e 64 6f 77 73 | 20 74 68 65 6e 20 2d 2d | windows| then --|
|00001b70| 20 c6 20 69 6e 20 63 61 | 73 65 20 6c 6f 77 20 6d | . in ca|se low m|
|00001b80| 65 6d 6f 72 79 0d 73 65 | 74 20 68 69 6c 69 74 65 |emory.se|t hilite|
|00001b90| 64 42 75 74 74 6f 6e 20 | 6f 66 20 77 69 6e 64 6f |dButton |of windo|
|00001ba0| 77 20 74 68 65 50 61 6c | 65 74 74 65 20 74 6f 20 |w thePal|ette to |
|00001bb0| 74 68 69 73 42 75 74 74 | 6f 6e 20 2d 2d 20 c6 0d |thisButt|on -- ..|
|00001bc0| 65 6c 73 65 20 62 65 65 | 70 0d 65 6e 64 20 70 61 |else bee|p.end pa|
|00001bd0| 69 6e 74 50 61 6c 65 74 | 74 65 0d 0d 6f 6e 20 63 |intPalet|te..on c|
|00001be0| 6f 6d 70 61 63 74 54 68 | 69 73 53 74 61 63 6b 0d |ompactTh|isStack.|
|00001bf0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 75 |put empt|y into u|
|00001c00| 73 69 6e 67 53 74 61 74 | 75 73 0d 70 75 74 20 65 |singStat|us.put e|
|00001c10| 6d 70 74 79 20 69 6e 74 | 6f 20 70 61 6c 65 74 74 |mpty int|o palett|
|00001c20| 65 53 74 61 74 75 73 0d | 69 66 20 73 74 61 63 6b |eStatus.|if stack|
|00001c30| 55 73 65 28 29 20 74 68 | 65 6e 0d 70 75 74 20 22 |Use() th|en.put "|
|00001c40| 73 74 61 72 74 20 75 73 | 69 6e 67 20 74 68 69 73 |start us|ing this|
|00001c50| 20 73 74 61 63 6b 22 20 | 69 6e 74 6f 20 75 73 69 | stack" |into usi|
|00001c60| 6e 67 53 74 61 74 75 73 | 0d 73 74 6f 70 20 75 73 |ngStatus|.stop us|
|00001c70| 69 6e 67 20 74 68 69 73 | 20 73 74 61 63 6b 0d 65 |ing this| stack.e|
|00001c80| 6e 64 20 69 66 0d 69 66 | 20 28 74 68 65 72 65 20 |nd if.if| (there |
|00001c90| 69 73 20 61 20 77 69 6e | 64 6f 77 20 22 47 65 6e |is a win|dow "Gen|
|00001ca0| 65 72 61 6c 50 61 6c 65 | 74 74 65 22 29 20 74 68 |eralPale|tte") th|
|00001cb0| 65 6e 0d 70 75 74 20 22 | 73 6e 22 20 69 6e 74 6f |en.put "|sn" into|
|00001cc0| 20 70 61 6c 65 74 74 65 | 53 74 61 74 75 73 0d 63 | palette|Status.c|
|00001cd0| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 47 65 6e |lose win|dow "Gen|
|00001ce0| 65 72 61 6c 50 61 6c 65 | 74 74 65 22 0d 65 6e 64 |eralPale|tte".end|
|00001cf0| 20 69 66 0d 73 65 6e 64 | 20 28 22 64 6f 4d 65 6e | if.send| ("doMen|
|00001d00| 75 22 20 26 26 20 71 75 | 6f 74 65 20 26 20 22 43 |u" && qu|ote & "C|
|00001d10| 6f 6d 70 61 63 74 20 53 | 74 61 63 6b 22 20 26 20 |ompact S|tack" & |
|00001d20| 71 75 6f 74 65 29 20 74 | 6f 20 48 79 70 65 72 43 |quote) t|o HyperC|
|00001d30| 61 72 64 20 2d 2d c6 0d | 69 66 20 75 73 69 6e 67 |ard --..|if using|
|00001d40| 53 74 61 74 75 73 20 69 | 73 20 6e 6f 74 20 65 6d |Status i|s not em|
|00001d50| 70 74 79 20 74 68 65 6e | 0d 64 6f 20 75 73 69 6e |pty then|.do usin|
|00001d60| 67 53 74 61 74 75 73 0d | 69 66 20 74 68 65 72 65 |gStatus.|if there|
|00001d70| 20 69 73 20 61 20 6d 65 | 6e 75 20 22 49 6e 55 73 | is a me|nu "InUs|
|00001d80| 65 22 20 74 68 65 6e 20 | 64 6f 49 6e 55 73 65 4d |e" then |doInUseM|
|00001d90| 65 6e 75 0d 65 6e 64 20 | 69 66 0d 69 66 20 70 61 |enu.end |if.if pa|
|00001da0| 6c 65 74 74 65 53 74 61 | 74 75 73 20 69 73 20 6e |letteSta|tus is n|
|00001db0| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 20 64 6f |ot empty| then do|
|00001dc0| 20 70 61 6c 65 74 74 65 | 53 74 61 74 75 73 0d 65 | palette|Status.e|
|00001dd0| 6e 64 20 63 6f 6d 70 61 | 63 74 54 68 69 73 53 74 |nd compa|ctThisSt|
|00001de0| 61 63 6b 0d 0d 2d 2d 2d | 2d 2d 20 20 50 61 6c 65 |ack..---|-- Pale|
|00001df0| 74 74 65 20 43 6f 6e 74 | 72 6f 6c 20 48 61 6e 64 |tte Cont|rol Hand|
|00001e00| 6c 65 72 73 3a 20 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |lers: -|--------|
|00001e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 6f 6e 20 |--------|---..on |
|00001e30| 73 6e 0d 67 6c 6f 62 61 | 6c 20 44 6f 6e 74 53 68 |sn.globa|l DontSh|
|00001e40| 6f 77 47 65 6e 65 72 61 | 6c 0d 70 75 74 20 65 6d |owGenera|l.put em|
|00001e50| 70 74 79 20 69 6e 74 6f | 20 44 6f 6e 74 53 68 6f |pty into| DontSho|
|00001e60| 77 47 65 6e 65 72 61 6c | 0d 6d 61 6b 65 50 61 6c |wGeneral|.makePal|
|00001e70| 65 74 74 65 0d 65 6e 64 | 20 73 6e 0d 0d 6f 6e 20 |ette.end| sn..on |
|00001e80| 70 61 6c 65 74 74 65 44 | 69 73 6d 69 73 73 0d 67 |paletteD|ismiss.g|
|00001e90| 6c 6f 62 61 6c 20 44 6f | 6e 74 53 68 6f 77 47 65 |lobal Do|ntShowGe|
|00001ea0| 6e 65 72 61 6c 0d 69 66 | 20 77 72 6f 6e 67 53 74 |neral.if| wrongSt|
|00001eb0| 61 63 6b 28 29 20 74 68 | 65 6e 20 70 61 73 73 20 |ack() th|en pass |
|00001ec0| 70 61 6c 65 74 74 65 44 | 69 73 6d 69 73 73 0d 70 |paletteD|ismiss.p|
|00001ed0| 75 74 20 22 73 74 61 79 | 41 77 61 79 22 20 69 6e |ut "stay|Away" in|
|00001ee0| 74 6f 20 44 6f 6e 74 53 | 68 6f 77 47 65 6e 65 72 |to DontS|howGener|
|00001ef0| 61 6c 0d 65 6e 64 20 70 | 61 6c 65 74 74 65 44 69 |al.end p|aletteDi|
|00001f00| 73 6d 69 73 73 0d 0d 6f | 6e 20 6d 61 6b 65 50 61 |smiss..o|n makePa|
|00001f10| 6c 65 74 74 65 0d 67 6c | 6f 62 61 6c 20 47 65 6e |lette.gl|obal Gen|
|00001f20| 65 72 61 6c 50 61 6c 65 | 74 74 65 4c 6f 63 2c 44 |eralPale|tteLoc,D|
|00001f30| 6f 6e 74 53 68 6f 77 47 | 65 6e 65 72 61 6c 0d 2d |ontShowG|eneral.-|
|00001f40| 2d 20 63 72 65 61 74 65 | 20 74 68 65 20 6e 61 76 |- create| the nav|
|00001f50| 69 67 61 74 69 6f 6e 20 | 70 61 6c 65 74 74 65 0d |igation |palette.|
|00001f60| 69 66 20 44 6f 6e 74 53 | 68 6f 77 47 65 6e 65 72 |if DontS|howGener|
|00001f70| 61 6c 20 69 73 20 22 73 | 74 61 79 41 77 61 79 22 |al is "s|tayAway"|
|00001f80| 20 74 68 65 6e 20 65 78 | 69 74 20 6d 61 6b 65 50 | then ex|it makeP|
|00001f90| 61 6c 65 74 74 65 0d 69 | 66 20 74 68 65 72 65 20 |alette.i|f there |
|00001fa0| 69 73 20 61 20 77 69 6e | 64 6f 77 20 22 47 65 6e |is a win|dow "Gen|
|00001fb0| 65 72 61 6c 50 61 6c 65 | 74 74 65 22 0d 74 68 65 |eralPale|tte".the|
|00001fc0| 6e 20 69 66 20 74 68 65 | 20 76 69 73 69 62 6c 65 |n if the| visible|
|00001fd0| 20 6f 66 20 77 69 6e 64 | 6f 77 20 22 47 65 6e 65 | of wind|ow "Gene|
|00001fe0| 72 61 6c 50 61 6c 65 74 | 74 65 22 20 74 68 65 6e |ralPalet|te" then|
|00001ff0| 20 65 78 69 74 20 6d 61 | 6b 65 50 61 6c 65 74 74 | exit ma|kePalett|
|00002000| 65 0d 70 75 74 20 22 4c | 69 73 74 20 6f 66 20 54 |e.put "L|ist of T|
|00002010| 6f 6f 6c 73 22 20 69 6e | 74 6f 20 63 65 6e 74 65 |ools" in|to cente|
|00002020| 72 42 74 6e 4e 61 6d 65 | 20 2d 2d 20 c6 0d 69 66 |rBtnName| -- ..if|
|00002030| 20 47 65 6e 65 72 61 6c | 50 61 6c 65 74 74 65 4c | General|PaletteL|
|00002040| 6f 63 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |oc is em|pty then|
|00002050| 0d 70 75 74 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |.put (it|em 1 of |
|00002060| 6c 6f 63 20 6f 66 20 63 | 64 20 77 69 6e 64 6f 77 |loc of c|d window|
|00002070| 20 2b 20 31 35 30 29 20 | 69 6e 74 6f 20 6c 65 66 | + 150) |into lef|
|00002080| 74 0d 70 75 74 20 28 69 | 74 65 6d 20 32 20 6f 66 |t.put (i|tem 2 of|
|00002090| 20 6c 6f 63 20 6f 66 20 | 63 64 20 77 69 6e 64 6f | loc of |cd windo|
|000020a0| 77 20 2b 20 33 30 36 29 | 20 69 6e 74 6f 20 74 6f |w + 306)| into to|
|000020b0| 70 0d 65 6c 73 65 0d 70 | 75 74 20 69 74 65 6d 20 |p.else.p|ut item |
|000020c0| 31 20 6f 66 20 47 65 6e | 65 72 61 6c 50 61 6c 65 |1 of Gen|eralPale|
|000020d0| 74 74 65 4c 6f 63 20 69 | 6e 74 6f 20 6c 65 66 74 |tteLoc i|nto left|
|000020e0| 0d 70 75 74 20 69 74 65 | 6d 20 32 20 6f 66 20 47 |.put ite|m 2 of G|
|000020f0| 65 6e 65 72 61 6c 50 61 | 6c 65 74 74 65 4c 6f 63 |eneralPa|letteLoc|
|00002100| 20 69 6e 74 6f 20 74 6f | 70 0d 65 6e 64 20 69 66 | into to|p.end if|
|00002110| 0d 47 65 6e 65 72 61 6c | 50 61 6c 65 74 74 65 20 |.General|Palette |
|00002120| 63 65 6e 74 65 72 42 74 | 6e 4e 61 6d 65 2c 6c 65 |centerBt|nName,le|
|00002130| 66 74 2c 74 6f 70 20 2d | 2d 20 63 72 65 61 74 65 |ft,top -|- create|
|00002140| 20 74 68 65 20 70 61 6c | 65 74 74 65 0d 65 6e 64 | the pal|ette.end|
|00002150| 20 6d 61 6b 65 50 61 6c | 65 74 74 65 0d 0d 6f 6e | makePal|ette..on|
|00002160| 20 6b 69 6c 6c 50 61 6c | 65 74 74 65 0d 2d 2d 20 | killPal|ette.-- |
|00002170| 64 69 73 70 6f 73 65 20 | 6f 66 20 74 68 65 20 6e |dispose |of the n|
|00002180| 61 76 69 67 61 74 69 6f | 6e 20 70 61 6c 65 74 74 |avigatio|n palett|
|00002190| 65 0d 69 66 20 28 22 47 | 65 6e 65 72 61 6c 50 61 |e.if ("G|eneralPa|
|000021a0| 6c 65 74 74 65 22 20 69 | 73 20 69 6e 20 74 68 65 |lette" i|s in the|
|000021b0| 20 77 69 6e 64 6f 77 73 | 29 20 74 68 65 6e 20 63 | windows|) then c|
|000021c0| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 47 65 6e |lose win|dow "Gen|
|000021d0| 65 72 61 6c 50 61 6c 65 | 74 74 65 22 0d 65 6e 64 |eralPale|tte".end|
|000021e0| 20 6b 69 6c 6c 50 61 6c | 65 74 74 65 0d 0d 2d 2d | killPal|ette..--|
|000021f0| 2d 2d 2d 20 20 50 6f 77 | 65 72 20 4d 65 6e 75 20 |--- Pow|er Menu |
|00002200| 48 61 6e 64 6c 65 72 73 | 3a 20 20 2d 2d 2d 2d 2d |Handlers|: -----|
|00002210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00002230| 0d 6f 6e 20 70 6d 0d 70 | 6f 77 65 72 4d 65 6e 75 |.on pm.p|owerMenu|
|00002240| 0d 65 6e 64 20 70 6d 0d | 0d 6f 6e 20 70 6f 77 65 |.end pm.|.on powe|
|00002250| 72 4d 65 6e 75 0d 69 66 | 20 74 68 65 72 65 20 69 |rMenu.if| there i|
|00002260| 73 20 61 20 6d 65 6e 75 | 20 22 50 6f 77 65 72 22 |s a menu| "Power"|
|00002270| 20 74 68 65 6e 20 65 78 | 69 74 20 70 6f 77 65 72 | then ex|it power|
|00002280| 4d 65 6e 75 20 2d 2d 20 | c6 0d 63 72 65 61 74 65 |Menu -- |..create|
|00002290| 20 6d 65 6e 75 20 22 50 | 6f 77 65 72 22 20 2d 2d | menu "P|ower" --|
|000022a0| 20 c6 0d 70 75 74 20 70 | 6f 77 65 72 4d 65 6e 75 | ..put p|owerMenu|
|000022b0| 49 74 65 6d 73 28 29 20 | 69 6e 74 6f 20 6d 65 6e |Items() |into men|
|000022c0| 75 20 22 50 6f 77 65 72 | 22 20 77 69 74 68 20 6d |u "Power|" with m|
|000022d0| 65 6e 75 4d 73 67 20 70 | 6f 77 65 72 4d 65 6e 75 |enuMsg p|owerMenu|
|000022e0| 4d 73 67 73 28 29 20 2d | 2d 20 c6 0d 65 6e 64 20 |Msgs() -|- ..end |
|000022f0| 70 6f 77 65 72 4d 65 6e | 75 0d 0d 66 75 6e 63 74 |powerMen|u..funct|
|00002300| 69 6f 6e 20 70 6f 77 65 | 72 4d 65 6e 75 49 74 65 |ion powe|rMenuIte|
|00002310| 6d 73 0d 72 65 74 75 72 | 6e 20 22 42 72 75 73 68 |ms.retur|n "Brush|
|00002320| 20 53 68 61 70 65 73 2c | 4c 69 6e 65 20 53 69 7a | Shapes,|Line Siz|
|00002330| 65 73 2c 4c 69 73 74 20 | 4f 62 6a 65 63 74 73 2c |es,List |Objects,|
|00002340| 22 20 26 20 c2 0d 22 50 | 6f 6c 79 20 53 68 61 70 |" & .."P|oly Shap|
|00002350| 65 73 2c 53 74 61 63 6b | 20 4e 61 76 69 67 61 74 |es,Stack| Navigat|
|00002360| 69 6f 6e 2c 53 74 61 63 | 6b 73 2c 22 20 26 20 c2 |ion,Stac|ks," & .|
|00002370| 0d 22 53 74 61 63 6b 73 | 49 6e 55 73 65 2c 53 75 |."Stacks|InUse,Su|
|00002380| 70 65 72 20 47 72 6f 75 | 70 65 72 2c 57 69 6e 64 |per Grou|per,Wind|
|00002390| 6f 77 20 4d 61 6e 61 67 | 65 72 2c 22 20 26 20 c2 |ow Manag|er," & .|
|000023a0| 0d 22 2d 2c 4e 61 76 69 | 67 61 74 6f 72 2c 4d 65 |."-,Navi|gator,Me|
|000023b0| 73 73 61 67 65 20 57 61 | 74 63 68 65 72 2c 22 20 |ssage Wa|tcher," |
|000023c0| 26 20 c2 0d 22 56 61 72 | 69 61 62 6c 65 20 57 61 |& .."Var|iable Wa|
|000023d0| 74 63 68 65 72 2c 2d 2c | 44 65 6c 65 74 65 20 54 |tcher,-,|Delete T|
|000023e0| 68 69 73 20 4d 65 6e 75 | 22 20 2d 2d 20 c6 0d 65 |his Menu|" -- ..e|
|000023f0| 6e 64 20 70 6f 77 65 72 | 4d 65 6e 75 49 74 65 6d |nd power|MenuItem|
|00002400| 73 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 70 6f 77 65 |s..funct|ion powe|
|00002410| 72 4d 65 6e 75 4d 73 67 | 73 0d 72 65 74 75 72 6e |rMenuMsg|s.return|
|00002420| 20 22 62 73 2c 6c 73 2c | 6c 6f 2c 70 73 2c 73 6e | "bs,ls,|lo,ps,sn|
|00002430| 2c 73 6d 2c 69 75 2c 73 | 67 2c 77 6d 2c 2d 2c 6e |,sm,iu,s|g,wm,-,n|
|00002440| 61 76 2c 6d 77 2c 76 77 | 2c 2d 2c 64 65 6c 65 74 |av,mw,vw|,-,delet|
|00002450| 65 20 6d 65 6e 75 20 50 | 6f 77 65 72 22 20 2d 2d |e menu P|ower" --|
|00002460| 20 c6 0d 65 6e 64 20 70 | 6f 77 65 72 4d 65 6e 75 | ..end p|owerMenu|
|00002470| 4d 73 67 73 0d 0d 6f 6e | 20 6e 61 76 0d 70 61 6c |Msgs..on| nav.pal|
|00002480| 65 74 74 65 20 22 4e 61 | 76 69 67 61 74 6f 72 22 |ette "Na|vigator"|
|00002490| 0d 65 6e 64 20 6e 61 76 | 0d 0d 6f 6e 20 76 77 0d |.end nav|..on vw.|
|000024a0| 73 68 6f 77 20 77 69 6e | 64 6f 77 20 22 56 61 72 |show win|dow "Var|
|000024b0| 69 61 62 6c 65 20 57 61 | 74 63 68 65 72 22 0d 65 |iable Wa|tcher".e|
|000024c0| 6e 64 20 76 77 0d 0d 6f | 6e 20 6d 77 0d 73 68 6f |nd vw..o|n mw.sho|
|000024d0| 77 20 77 69 6e 64 6f 77 | 20 22 4d 65 73 73 61 67 |w window| "Messag|
|000024e0| 65 20 57 61 74 63 68 65 | 72 22 0d 65 6e 64 20 6d |e Watche|r".end m|
|000024f0| 77 0d 0d 2d 2d 2d 2d 2d | 20 20 53 74 61 63 6b 73 |w..-----| Stacks|
|00002500| 20 4d 65 6e 75 20 48 61 | 6e 64 6c 65 72 73 3a 20 | Menu Ha|ndlers: |
|00002510| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00002520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002530| 2d 2d 2d 2d 2d 0d 0d 6f | 6e 20 73 6d 0d 64 6f 53 |-----..o|n sm.doS|
|00002540| 74 61 63 6b 73 4d 65 6e | 75 0d 65 6e 64 20 73 6d |tacksMen|u.end sm|
|00002550| 0d 0d 6f 6e 20 64 6f 53 | 74 61 63 6b 73 4d 65 6e |..on doS|tacksMen|
|00002560| 75 0d 73 65 74 20 74 68 | 65 20 63 75 72 73 6f 72 |u.set th|e cursor|
|00002570| 20 74 6f 20 77 61 74 63 | 68 0d 69 66 20 74 68 65 | to watc|h.if the|
|00002580| 72 65 20 69 73 20 61 20 | 6d 65 6e 75 20 22 53 74 |re is a |menu "St|
|00002590| 61 63 6b 73 22 20 74 68 | 65 6e 20 64 65 6c 65 74 |acks" th|en delet|
|000025a0| 65 20 6d 65 6e 75 20 22 | 53 74 61 63 6b 73 22 20 |e menu "|Stacks" |
|000025b0| 2d 2d 20 c6 0d 63 72 65 | 61 74 65 20 6d 65 6e 75 |-- ..cre|ate menu|
|000025c0| 20 22 53 74 61 63 6b 73 | 22 20 2d 2d 20 c6 0d 70 | "Stacks|" -- ..p|
|000025d0| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 74 68 |ut empty| into th|
|000025e0| 65 4d 65 6e 75 0d 70 75 | 74 20 65 6d 70 74 79 20 |eMenu.pu|t empty |
|000025f0| 69 6e 74 6f 20 74 68 65 | 4d 73 67 73 0d 70 75 74 |into the|Msgs.put|
|00002600| 20 74 68 65 20 73 74 61 | 63 6b 73 20 69 6e 74 6f | the sta|cks into|
|00002610| 20 74 68 65 53 74 61 63 | 6b 73 0d 70 75 74 20 6e | theStac|ks.put n|
|00002620| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00002630| 6e 20 74 68 65 53 74 61 | 63 6b 73 20 69 6e 74 6f |n theSta|cks into|
|00002640| 20 74 68 65 4c 69 6e 65 | 73 0d 72 65 70 65 61 74 | theLine|s.repeat|
|00002650| 20 77 69 74 68 20 63 6f | 75 6e 74 20 3d 20 31 20 | with co|unt = 1 |
|00002660| 74 6f 20 74 68 65 4c 69 | 6e 65 73 0d 67 65 74 20 |to theLi|nes.get |
|00002670| 73 74 72 69 70 50 61 74 | 68 28 6c 69 6e 65 20 63 |stripPat|h(line c|
|00002680| 6f 75 6e 74 20 6f 66 20 | 74 68 65 53 74 61 63 6b |ount of |theStack|
|00002690| 73 29 0d 70 75 74 20 69 | 74 20 26 20 22 2c 22 20 |s).put i|t & "," |
|000026a0| 61 66 74 65 72 20 74 68 | 65 4d 65 6e 75 0d 70 75 |after th|eMenu.pu|
|000026b0| 74 20 22 67 6f 20 73 74 | 61 63 6b 22 20 26 26 20 |t "go st|ack" && |
|000026c0| 71 75 6f 74 65 20 26 20 | 69 74 20 26 20 71 75 6f |quote & |it & quo|
|000026d0| 74 65 20 26 20 22 2c 22 | 20 61 66 74 65 72 20 74 |te & ","| after t|
|000026e0| 68 65 4d 73 67 73 20 2d | 2d 20 c6 0d 65 6e 64 20 |heMsgs -|- ..end |
|000026f0| 72 65 70 65 61 74 0d 70 | 75 74 20 22 2d 2c 22 20 |repeat.p|ut "-," |
|00002700| 26 20 22 44 65 6c 65 74 | 65 20 54 68 69 73 20 4d |& "Delet|e This M|
|00002710| 65 6e 75 22 20 61 66 74 | 65 72 20 74 68 65 4d 65 |enu" aft|er theMe|
|00002720| 6e 75 20 2d 2d 20 c6 0d | 70 75 74 20 22 2d 2c 22 |nu -- ..|put "-,"|
|00002730| 20 26 20 22 64 65 6c 65 | 74 65 20 6d 65 6e 75 22 | & "dele|te menu"|
|00002740| 20 26 26 20 71 75 6f 74 | 65 20 26 20 22 53 74 61 | && quot|e & "Sta|
|00002750| 63 6b 73 22 20 26 20 71 | 75 6f 74 65 20 61 66 74 |cks" & q|uote aft|
|00002760| 65 72 20 74 68 65 4d 73 | 67 73 20 2d 2d 20 c6 0d |er theMs|gs -- ..|
|00002770| 70 75 74 20 74 68 65 4d | 65 6e 75 20 69 6e 74 6f |put theM|enu into|
|00002780| 20 6d 65 6e 75 20 22 53 | 74 61 63 6b 73 22 20 77 | menu "S|tacks" w|
|00002790| 69 74 68 20 6d 65 6e 75 | 6d 73 67 73 20 74 68 65 |ith menu|msgs the|
|000027a0| 4d 73 67 73 20 2d 2d 20 | c6 0d 65 6e 64 20 64 6f |Msgs -- |..end do|
|000027b0| 53 74 61 63 6b 73 4d 65 | 6e 75 0d 0d 2d 2d 2d 2d |StacksMe|nu..----|
|000027c0| 2d 20 20 49 6e 55 73 65 | 20 4d 65 6e 75 20 48 61 |- InUse| Menu Ha|
|000027d0| 6e 64 6c 65 72 73 3a 20 | 20 2d 2d 2d 2d 2d 2d 2d |ndlers: | -------|
|000027e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002800| 2d 0d 0d 6f 6e 20 69 75 | 0d 64 6f 49 6e 55 73 65 |-..on iu|.doInUse|
|00002810| 4d 65 6e 75 0d 65 6e 64 | 20 69 75 0d 0d 6f 6e 20 |Menu.end| iu..on |
|00002820| 64 6f 49 6e 55 73 65 4d | 65 6e 75 0d 73 65 74 20 |doInUseM|enu.set |
|00002830| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 77 61 |the curs|or to wa|
|00002840| 74 63 68 0d 70 75 74 20 | 74 68 65 20 73 74 61 63 |tch.put |the stac|
|00002850| 6b 73 49 6e 55 73 65 20 | 69 6e 74 6f 20 74 68 65 |ksInUse |into the|
|00002860| 53 74 61 63 6b 73 0d 70 | 75 74 20 6e 75 6d 62 65 |Stacks.p|ut numbe|
|00002870| 72 20 6f 66 20 6c 69 6e | 65 73 20 69 6e 20 74 68 |r of lin|es in th|
|00002880| 65 53 74 61 63 6b 73 20 | 69 6e 74 6f 20 74 68 65 |eStacks |into the|
|00002890| 4c 69 6e 65 73 0d 70 75 | 74 20 22 53 74 61 72 74 |Lines.pu|t "Start|
|000028a0| 20 55 73 69 6e 67 c9 2c | 53 74 6f 70 20 55 73 69 | Using.,|Stop Usi|
|000028b0| 6e 67 c9 2c 2d 2c 22 20 | 69 6e 74 6f 20 74 68 65 |ng.,-," |into the|
|000028c0| 4d 65 6e 75 20 2d 2d 20 | c6 0d 70 75 74 20 22 73 |Menu -- |..put "s|
|000028d0| 74 61 72 74 55 73 69 6e | 67 2c 73 74 6f 70 55 73 |tartUsin|g,stopUs|
|000028e0| 69 6e 67 2c 2d 2c 22 20 | 69 6e 74 6f 20 74 68 65 |ing,-," |into the|
|000028f0| 4d 73 67 73 0d 72 65 70 | 65 61 74 20 77 69 74 68 |Msgs.rep|eat with|
|00002900| 20 63 6f 75 6e 74 20 3d | 20 31 20 74 6f 20 74 68 | count =| 1 to th|
|00002910| 65 4c 69 6e 65 73 0d 67 | 65 74 20 6c 69 6e 65 20 |eLines.g|et line |
|00002920| 63 6f 75 6e 74 20 6f 66 | 20 74 68 65 53 74 61 63 |count of| theStac|
|00002930| 6b 73 0d 2d 2d 70 75 74 | 20 22 67 6f 53 74 61 63 |ks.--put| "goStac|
|00002940| 6b 22 20 26 26 20 69 74 | 20 26 20 22 2c 22 20 61 |k" && it| & "," a|
|00002950| 66 74 65 72 20 74 68 65 | 4d 73 67 73 0d 70 75 74 |fter the|Msgs.put|
|00002960| 20 22 67 6f 22 20 26 26 | 20 69 74 20 26 20 22 2c | "go" &&| it & ",|
|00002970| 22 20 61 66 74 65 72 20 | 74 68 65 4d 73 67 73 0d |" after |theMsgs.|
|00002980| 70 75 74 20 73 74 72 69 | 70 50 61 74 68 28 69 74 |put stri|pPath(it|
|00002990| 29 20 26 20 22 2c 22 20 | 61 66 74 65 72 20 74 68 |) & "," |after th|
|000029a0| 65 4d 65 6e 75 0d 65 6e | 64 20 72 65 70 65 61 74 |eMenu.en|d repeat|
|000029b0| 0d 69 66 20 74 68 65 53 | 74 61 63 6b 73 20 ad 20 |.if theS|tacks . |
|000029c0| 65 6d 70 74 79 20 74 68 | 65 6e 0d 70 75 74 20 22 |empty th|en.put "|
|000029d0| 2d 22 20 26 20 22 2c 22 | 20 61 66 74 65 72 20 74 |-" & ","| after t|
|000029e0| 68 65 4d 65 6e 75 0d 70 | 75 74 20 22 2d 22 20 26 |heMenu.p|ut "-" &|
|000029f0| 20 22 2c 22 20 61 66 74 | 65 72 20 74 68 65 4d 73 | "," aft|er theMs|
|00002a00| 67 73 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 22 44 |gs.end i|f.put "D|
|00002a10| 65 6c 65 74 65 20 54 68 | 69 73 20 4d 65 6e 75 22 |elete Th|is Menu"|
|00002a20| 20 61 66 74 65 72 20 74 | 68 65 4d 65 6e 75 20 2d | after t|heMenu -|
|00002a30| 2d 20 c6 0d 70 75 74 20 | 22 64 65 6c 65 74 65 20 |- ..put |"delete |
|00002a40| 6d 65 6e 75 22 20 26 26 | 20 71 75 6f 74 65 20 26 |menu" &&| quote &|
|00002a50| 20 22 49 6e 55 73 65 22 | 20 26 20 71 75 6f 74 65 | "InUse"| & quote|
|00002a60| 20 61 66 74 65 72 20 74 | 68 65 4d 73 67 73 20 2d | after t|heMsgs -|
|00002a70| 2d 20 c6 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |- ..if t|here is |
|00002a80| 61 20 6d 65 6e 75 20 22 | 49 6e 55 73 65 22 20 74 |a menu "|InUse" t|
|00002a90| 68 65 6e 20 64 65 6c 65 | 74 65 20 6d 65 6e 75 20 |hen dele|te menu |
|00002aa0| 22 49 6e 55 73 65 22 20 | 2d 2d 20 c6 0d 63 72 65 |"InUse" |-- ..cre|
|00002ab0| 61 74 65 20 6d 65 6e 75 | 20 22 49 6e 55 73 65 22 |ate menu| "InUse"|
|00002ac0| 20 2d 2d 20 c6 0d 70 75 | 74 20 74 68 65 4d 65 6e | -- ..pu|t theMen|
|00002ad0| 75 20 69 6e 74 6f 20 6d | 65 6e 75 20 22 49 6e 55 |u into m|enu "InU|
|00002ae0| 73 65 22 20 77 69 74 68 | 20 6d 65 6e 75 4d 73 67 |se" with| menuMsg|
|00002af0| 20 74 68 65 4d 73 67 73 | 20 2d 2d 20 c6 0d 67 65 | theMsgs| -- ..ge|
|00002b00| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|00002b10| 6d 65 6e 75 49 74 65 6d | 73 20 69 6e 20 6d 65 6e |menuItem|s in men|
|00002b20| 75 20 22 49 6e 55 73 65 | 22 20 2d 2d 20 c6 0d 73 |u "InUse|" -- ..s|
|00002b30| 65 74 20 65 6e 61 62 6c | 65 64 20 6f 66 20 6d 65 |et enabl|ed of me|
|00002b40| 6e 75 49 74 65 6d 20 32 | 20 6f 66 20 6d 65 6e 75 |nuItem 2| of menu|
|00002b50| 20 22 49 6e 55 73 65 22 | 20 74 6f 20 28 69 74 20 | "InUse"| to (it |
|00002b60| 3e 20 34 29 20 2d 2d 20 | c6 0d 65 6e 64 20 64 6f |> 4) -- |..end do|
|00002b70| 49 6e 55 73 65 4d 65 6e | 75 0d 0d 6f 6e 20 73 74 |InUseMen|u..on st|
|00002b80| 61 72 74 55 73 69 6e 67 | 0d 61 6e 73 77 65 72 20 |artUsing|.answer |
|00002b90| 66 69 6c 65 20 22 53 74 | 61 72 74 20 75 73 69 6e |file "St|art usin|
|00002ba0| 67 20 77 68 61 74 20 73 | 74 61 63 6b 3f 22 20 6f |g what s|tack?" o|
|00002bb0| 66 20 74 79 70 65 20 22 | 53 54 41 4b 22 20 2d 2d |f type "|STAK" --|
|00002bc0| 20 c6 0d 69 66 20 28 69 | 74 20 69 73 20 65 6d 70 | ..if (i|t is emp|
|00002bd0| 74 79 29 20 6f 72 20 28 | 74 68 65 20 72 65 73 75 |ty) or (|the resu|
|00002be0| 6c 74 20 69 73 20 22 43 | 61 6e 63 65 6c 22 29 20 |lt is "C|ancel") |
|00002bf0| 74 68 65 6e 20 65 78 69 | 74 20 74 6f 20 68 79 70 |then exi|t to hyp|
|00002c00| 65 72 43 61 72 64 20 2d | 2d 20 c6 0d 73 65 74 20 |erCard -|- ..set |
|00002c10| 74 68 65 20 63 75 72 73 | 6f 72 20 74 6f 20 77 61 |the curs|or to wa|
|00002c20| 74 63 68 0d 64 6f 20 28 | 22 73 74 61 72 74 20 75 |tch.do (|"start u|
|00002c30| 73 69 6e 67 20 73 74 61 | 63 6b 22 20 26 26 20 71 |sing sta|ck" && q|
|00002c40| 75 6f 74 65 20 26 20 69 | 74 20 26 20 71 75 6f 74 |uote & i|t & quot|
|00002c50| 65 29 20 2d 2d 20 c6 0d | 64 6f 49 6e 55 73 65 4d |e) -- ..|doInUseM|
|00002c60| 65 6e 75 0d 65 6e 64 20 | 73 74 61 72 74 55 73 69 |enu.end |startUsi|
|00002c70| 6e 67 0d 0d 6f 6e 20 73 | 74 6f 70 55 73 69 6e 67 |ng..on s|topUsing|
|00002c80| 0d 73 65 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 |.set the| cursor |
|00002c90| 74 6f 20 77 61 74 63 68 | 0d 70 75 74 20 65 6d 70 |to watch|.put emp|
|00002ca0| 74 79 20 69 6e 74 6f 20 | 74 68 65 53 74 61 63 6b |ty into |theStack|
|00002cb0| 73 0d 70 75 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s.put nu|mber of |
|00002cc0| 6d 65 6e 75 49 74 65 6d | 73 20 69 6e 20 6d 65 6e |menuItem|s in men|
|00002cd0| 75 20 22 49 6e 55 73 65 | 22 20 69 6e 74 6f 20 6e |u "InUse|" into n|
|00002ce0| 75 6d 4d 65 6e 75 49 74 | 65 6d 73 20 2d 2d 20 c6 |umMenuIt|ems -- .|
|00002cf0| 0d 70 75 74 20 6c 69 6e | 65 20 34 20 74 6f 20 28 |.put lin|e 4 to (|
|00002d00| 6e 75 6d 4d 65 6e 75 49 | 74 65 6d 73 20 2d 20 32 |numMenuI|tems - 2|
|00002d10| 29 20 6f 66 20 6d 65 6e | 75 20 22 49 6e 55 73 65 |) of men|u "InUse|
|00002d20| 22 20 69 6e 74 6f 20 6d | 65 6e 75 49 74 65 6d 73 |" into m|enuItems|
|00002d30| 2d 2d 20 c6 0d 70 75 74 | 20 72 65 74 75 72 6e 20 |-- ..put| return |
|00002d40| 26 20 22 53 74 6f 70 20 | 75 73 69 6e 67 20 77 68 |& "Stop |using wh|
|00002d50| 61 74 20 73 74 61 63 6b | 3f 22 20 69 6e 74 6f 20 |at stack|?" into |
|00002d60| 70 72 6f 6d 70 74 20 2d | 2d 20 c6 0d 67 65 74 20 |prompt -|- ..get |
|00002d70| 73 68 6f 77 4c 69 73 74 | 28 6d 65 6e 75 49 74 65 |showList|(menuIte|
|00002d80| 6d 73 2c 70 72 6f 6d 70 | 74 2c 74 72 75 65 2c 66 |ms,promp|t,true,f|
|00002d90| 61 6c 73 65 2c 22 4f 4b | 2c 43 61 6e 63 65 6c 22 |alse,"OK|,Cancel"|
|00002da0| 2c 30 29 20 2d 2d 20 c6 | 0d 69 66 20 77 6f 72 64 |,0) -- .|.if word|
|00002db0| 20 31 20 6f 66 20 69 74 | 20 69 73 20 22 43 61 6e | 1 of it| is "Can|
|00002dc0| 63 65 6c 22 20 74 68 65 | 6e 20 65 78 69 74 20 73 |cel" the|n exit s|
|00002dd0| 74 6f 70 55 73 69 6e 67 | 20 2d 2d 20 c6 0d 69 66 |topUsing| -- ..if|
|00002de0| 20 6c 69 6e 65 20 32 20 | 6f 66 20 69 74 20 69 73 | line 2 |of it is|
|00002df0| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00002e00| 20 73 74 6f 70 55 73 69 | 6e 67 0d 70 75 74 20 28 | stopUsi|ng.put (|
|00002e10| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00002e20| 65 6d 73 20 69 6e 20 6c | 69 6e 65 20 32 20 6f 66 |ems in l|ine 2 of|
|00002e30| 20 69 74 29 20 69 6e 74 | 6f 20 6e 75 6d 49 74 65 | it) int|o numIte|
|00002e40| 6d 73 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |ms.repea|t with i|
|00002e50| 20 3d 20 31 20 74 6f 20 | 6e 75 6d 49 74 65 6d 73 | = 1 to |numItems|
|00002e60| 0d 64 6f 20 28 22 73 74 | 6f 70 20 75 73 69 6e 67 |.do ("st|op using|
|00002e70| 20 73 74 61 63 6b 22 20 | 26 26 20 71 75 6f 74 65 | stack" |&& quote|
|00002e80| 20 26 20 c2 0d 28 6c 69 | 6e 65 20 28 69 74 65 6d | & ..(li|ne (item|
|00002e90| 20 69 20 6f 66 20 6c 69 | 6e 65 20 32 20 6f 66 20 | i of li|ne 2 of |
|00002ea0| 69 74 29 20 6f 66 20 6d | 65 6e 75 49 74 65 6d 73 |it) of m|enuItems|
|00002eb0| 29 20 26 20 71 75 6f 74 | 65 29 20 2d 2d 20 c6 0d |) & quot|e) -- ..|
|00002ec0| 65 6e 64 20 72 65 70 65 | 61 74 0d 64 6f 49 6e 55 |end repe|at.doInU|
|00002ed0| 73 65 4d 65 6e 75 0d 65 | 6e 64 20 73 74 6f 70 55 |seMenu.e|nd stopU|
|00002ee0| 73 69 6e 67 0d 0d 6f 6e | 20 67 6f 53 74 61 63 6b |sing..on| goStack|
|00002ef0| 20 74 68 65 53 74 61 63 | 6b 0d 73 65 74 20 74 68 | theStac|k.set th|
|00002f00| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |e cursor| to watc|
|00002f10| 68 0d 64 6f 20 22 67 6f | 22 20 26 26 20 71 75 6f |h.do "go|" && quo|
|00002f20| 74 65 20 26 20 74 68 65 | 53 74 61 63 6b 20 26 20 |te & the|Stack & |
|00002f30| 71 75 6f 74 65 20 2d 2d | 20 c6 0d 65 6e 64 20 67 |quote --| ..end g|
|00002f40| 6f 53 74 61 63 6b 0d 0d | 2d 2d 2d 2d 2d 20 20 4c |oStack..|----- L|
|00002f50| 69 73 74 20 4f 62 6a 65 | 63 74 73 20 48 61 6e 64 |ist Obje|cts Hand|
|00002f60| 6c 65 72 73 20 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |lers --|--------|
|00002f70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f90| 0d 0d 6f 6e 20 6c 6f 0d | 6c 69 73 74 4f 62 6a 65 |..on lo.|listObje|
|00002fa0| 63 74 73 0d 65 6e 64 20 | 6c 6f 0d 0d 6f 6e 20 6c |cts.end |lo..on l|
|00002fb0| 69 73 74 4f 62 6a 65 63 | 74 73 0d 6c 6f 63 6b 20 |istObjec|ts.lock |
|00002fc0| 73 63 72 65 65 6e 0d 73 | 65 74 20 63 75 72 73 6f |screen.s|et curso|
|00002fd0| 72 20 74 6f 20 77 61 74 | 63 68 0d 70 75 74 20 65 |r to wat|ch.put e|
|00002fe0| 6d 70 74 79 20 69 6e 74 | 6f 20 6f 62 6a 4c 69 73 |mpty int|o objLis|
|00002ff0| 74 0d 70 75 74 20 22 2d | 2d 2d 2d 2d 2d 2d 2d 2d |t.put "-|--------|
|00003000| 2d 2d 2d 2d 2d 2d 22 20 | 26 20 72 65 74 75 72 6e |------" |& return|
|00003010| 20 69 6e 74 6f 20 6f 62 | 6a 53 70 61 63 65 72 0d | into ob|jSpacer.|
|00003020| 70 75 74 20 72 65 74 75 | 72 6e 20 26 20 22 4f 62 |put retu|rn & "Ob|
|00003030| 6a 65 63 74 73 20 6f 6e | 20 74 68 69 73 20 63 61 |jects on| this ca|
|00003040| 72 64 3a 22 20 69 6e 74 | 6f 20 70 72 6f 6d 70 74 |rd:" int|o prompt|
|00003050| 20 2d 2d 20 c6 0d 70 75 | 74 20 74 68 65 20 6e 61 | -- ..pu|t the na|
|00003060| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00003070| 20 26 20 22 2e 22 20 26 | 20 72 65 74 75 72 6e 20 | & "." &| return |
|00003080| 61 66 74 65 72 20 6f 62 | 6a 4c 69 73 74 0d 70 75 |after ob|jList.pu|
|00003090| 74 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |t the na|me of th|
|000030a0| 69 73 20 62 67 20 26 20 | 22 2e 22 20 26 20 72 65 |is bg & |"." & re|
|000030b0| 74 75 72 6e 20 61 66 74 | 65 72 20 6f 62 6a 4c 69 |turn aft|er objLi|
|000030c0| 73 74 0d 70 75 74 20 74 | 68 65 20 6e 61 6d 65 20 |st.put t|he name |
|000030d0| 6f 66 20 74 68 69 73 20 | 63 64 20 26 20 22 2e 22 |of this |cd & "."|
|000030e0| 20 26 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 | & retur|n after |
|000030f0| 6f 62 6a 4c 69 73 74 0d | 70 75 74 20 22 63 64 20 |objList.|put "cd |
|00003100| 62 74 6e 2c 62 67 20 62 | 74 6e 2c 63 64 20 66 6c |btn,bg b|tn,cd fl|
|00003110| 64 2c 62 67 20 66 6c 64 | 22 20 69 6e 74 6f 20 6c |d,bg fld|" into l|
|00003120| 69 73 74 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |ist.repe|at with |
|00003130| 69 20 3d 20 31 20 74 6f | 20 34 0d 70 75 74 20 28 |i = 1 to| 4.put (|
|00003140| 69 74 65 6d 20 69 20 6f | 66 20 6c 69 73 74 29 20 |item i o|f list) |
|00003150| 69 6e 74 6f 20 74 68 65 | 4f 62 6a 0d 70 75 74 20 |into the|Obj.put |
|00003160| 74 68 65 4f 62 6a 20 26 | 20 22 73 22 20 69 6e 74 |theObj &| "s" int|
|00003170| 6f 20 74 68 65 4f 62 6a | 73 0d 70 75 74 20 6e 75 |o theObj|s.put nu|
|00003180| 6d 62 65 72 20 6f 66 20 | 74 68 65 4f 62 6a 73 20 |mber of |theObjs |
|00003190| 69 6e 74 6f 20 6e 75 6d | 62 65 72 4f 66 4f 62 6a |into num|berOfObj|
|000031a0| 73 0d 69 66 20 6e 75 6d | 62 65 72 4f 66 4f 62 6a |s.if num|berOfObj|
|000031b0| 73 20 3d 20 30 20 74 68 | 65 6e 20 6e 65 78 74 20 |s = 0 th|en next |
|000031c0| 72 65 70 65 61 74 0d 70 | 75 74 20 6f 62 6a 53 70 |repeat.p|ut objSp|
|000031d0| 61 63 65 72 20 61 66 74 | 65 72 20 6f 62 6a 4c 69 |acer aft|er objLi|
|000031e0| 73 74 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 63 |st.repea|t with c|
|000031f0| 6f 75 6e 74 20 3d 20 31 | 20 74 6f 20 6e 75 6d 62 |ount = 1| to numb|
|00003200| 65 72 4f 66 4f 62 6a 73 | 0d 70 75 74 20 74 68 65 |erOfObjs|.put the|
|00003210| 4f 62 6a 20 26 26 20 63 | 6f 75 6e 74 20 69 6e 74 |Obj && c|ount int|
|00003220| 6f 20 74 68 65 4f 62 6a | 65 63 74 0d 67 65 74 20 |o theObj|ect.get |
|00003230| 6e 61 6d 65 20 6f 66 20 | 74 68 65 4f 62 6a 65 63 |name of |theObjec|
|00003240| 74 0d 69 66 20 76 69 73 | 69 62 6c 65 20 6f 66 20 |t.if vis|ible of |
|00003250| 69 74 20 74 68 65 6e 20 | 70 75 74 20 69 74 20 26 |it then |put it &|
|00003260| 20 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 6f 62 | return |after ob|
|00003270| 6a 4c 69 73 74 0d 65 6c | 73 65 20 70 75 74 20 22 |jList.el|se put "|
|00003280| 5b 22 20 26 20 69 74 20 | 26 20 22 5d 22 20 26 20 |[" & it |& "]" & |
|00003290| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 6f 62 6a |return a|fter obj|
|000032a0| 4c 69 73 74 20 2d 2d 20 | 69 6e 64 69 63 61 74 65 |List -- |indicate|
|000032b0| 20 61 20 68 69 64 64 65 | 6e 20 6f 62 6a 0d 65 6e | a hidde|n obj.en|
|000032c0| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |d repeat|.end rep|
|000032d0| 65 61 74 0d 64 65 6c 65 | 74 65 20 6c 61 73 74 20 |eat.dele|te last |
|000032e0| 63 68 61 72 20 6f 66 20 | 6f 62 6a 4c 69 73 74 0d |char of |objList.|
|000032f0| 67 65 74 20 73 68 6f 77 | 4c 69 73 74 28 6f 62 6a |get show|List(obj|
|00003300| 4c 69 73 74 2c 70 72 6f | 6d 70 74 2c 66 61 6c 73 |List,pro|mpt,fals|
|00003310| 65 2c 66 61 6c 73 65 2c | 22 43 61 6e 63 65 6c 5e |e,false,|"Cancel^|
|00003320| 2c 53 68 6f 77 2c 48 69 | 64 65 5e 2c 53 63 72 69 |,Show,Hi|de^,Scri|
|00003330| 70 74 22 2c 30 29 20 2d | 2d 20 c6 0d 69 66 20 28 |pt",0) -|- ..if (|
|00003340| 6c 69 6e 65 20 31 20 6f | 66 20 69 74 20 69 73 20 |line 1 o|f it is |
|00003350| 22 43 61 6e 63 65 6c 22 | 29 20 6f 72 20 28 63 68 |"Cancel"|) or (ch|
|00003360| 61 72 20 31 20 6f 66 20 | 6c 69 6e 65 20 28 6c 69 |ar 1 of |line (li|
|00003370| 6e 65 20 32 20 6f 66 20 | 69 74 29 20 6f 66 20 6f |ne 2 of |it) of o|
|00003380| 62 6a 4c 69 73 74 20 3d | 20 22 2d 22 29 20 2d 2d |bjList =| "-") --|
|00003390| 20 c6 0d 74 68 65 6e 20 | 65 78 69 74 20 6c 69 73 | ..then |exit lis|
|000033a0| 74 4f 62 6a 65 63 74 73 | 0d 75 6e 6c 6f 63 6b 20 |tObjects|.unlock |
|000033b0| 73 63 72 65 65 6e 0d 69 | 66 20 6c 69 6e 65 20 32 |screen.i|f line 2|
|000033c0| 20 6f 66 20 69 74 20 69 | 73 20 65 6d 70 74 79 20 | of it i|s empty |
|000033d0| 74 68 65 6e 20 65 78 69 | 74 20 6c 69 73 74 4f 62 |then exi|t listOb|
|000033e0| 6a 65 63 74 73 0d 70 75 | 74 20 6c 69 6e 65 20 28 |jects.pu|t line (|
|000033f0| 6c 69 6e 65 20 32 20 6f | 66 20 69 74 29 20 6f 66 |line 2 o|f it) of|
|00003400| 20 6f 62 6a 4c 69 73 74 | 20 69 6e 74 6f 20 74 68 | objList| into th|
|00003410| 65 53 65 6c 4f 62 6a 0d | 69 66 20 63 68 61 72 20 |eSelObj.|if char |
|00003420| 31 20 6f 66 20 74 68 65 | 53 65 6c 4f 62 6a 20 69 |1 of the|SelObj i|
|00003430| 73 20 22 5b 22 20 74 68 | 65 6e 20 64 65 6c 65 74 |s "[" th|en delet|
|00003440| 65 20 63 68 61 72 20 31 | 20 6f 66 20 74 68 65 53 |e char 1| of theS|
|00003450| 65 6c 4f 62 6a 0d 69 66 | 20 6c 61 73 74 20 63 68 |elObj.if| last ch|
|00003460| 61 72 20 6f 66 20 74 68 | 65 53 65 6c 4f 62 6a 20 |ar of th|eSelObj |
|00003470| 69 73 20 22 5d 22 20 74 | 68 65 6e 20 64 65 6c 65 |is "]" t|hen dele|
|00003480| 74 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |te last |char of |
|00003490| 74 68 65 53 65 6c 4f 62 | 6a 0d 69 66 20 6c 61 73 |theSelOb|j.if las|
|000034a0| 74 20 63 68 61 72 20 6f | 66 20 74 68 65 53 65 6c |t char o|f theSel|
|000034b0| 4f 62 6a 20 69 73 20 6e | 6f 74 20 22 2e 22 20 74 |Obj is n|ot "." t|
|000034c0| 68 65 6e 0d 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |hen.if l|ine 1 of|
|000034d0| 20 69 74 20 69 73 20 22 | 48 69 64 65 22 20 74 68 | it is "|Hide" th|
|000034e0| 65 6e 20 64 6f 20 22 68 | 69 64 65 22 20 26 26 20 |en do "h|ide" && |
|000034f0| 74 68 65 53 65 6c 4f 62 | 6a 20 2d 2d 20 c6 0d 65 |theSelOb|j -- ..e|
|00003500| 6c 73 65 20 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |lse if l|ine 1 of|
|00003510| 20 69 74 20 69 73 20 22 | 53 68 6f 77 22 20 74 68 | it is "|Show" th|
|00003520| 65 6e 20 64 6f 20 22 73 | 68 6f 77 22 20 26 26 20 |en do "s|how" && |
|00003530| 74 68 65 53 65 6c 4f 62 | 6a 20 2d 2d 20 c6 0d 65 |theSelOb|j -- ..e|
|00003540| 6e 64 20 69 66 0d 69 66 | 20 6c 61 73 74 20 63 68 |nd if.if| last ch|
|00003550| 61 72 20 6f 66 20 74 68 | 65 53 65 6c 4f 62 6a 20 |ar of th|eSelObj |
|00003560| 69 73 20 22 2e 22 0d 74 | 68 65 6e 20 64 65 6c 65 |is ".".t|hen dele|
|00003570| 74 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |te last |char of |
|00003580| 74 68 65 53 65 6c 4f 62 | 6a 0d 69 66 20 6c 69 6e |theSelOb|j.if lin|
|00003590| 65 20 31 20 6f 66 20 69 | 74 20 69 73 20 22 53 63 |e 1 of i|t is "Sc|
|000035a0| 72 69 70 74 22 20 2d 2d | 20 c6 0d 74 68 65 6e 20 |ript" --| ..then |
|000035b0| 64 6f 20 22 65 64 69 74 | 20 73 63 72 69 70 74 20 |do "edit| script |
|000035c0| 6f 66 22 20 26 26 20 74 | 68 65 53 65 6c 4f 62 6a |of" && t|heSelObj|
|000035d0| 20 2d 2d 20 c6 0d 65 6e | 64 20 6c 69 73 74 4f 62 | -- ..en|d listOb|
|000035e0| 6a 65 63 74 73 0d 0d 2d | 2d 2d 2d 2d 20 20 57 69 |jects..-|---- Wi|
|000035f0| 6e 64 6f 77 20 4d 67 72 | 20 50 61 6c 65 74 74 65 |ndow Mgr| Palette|
|00003600| 20 48 61 6e 64 6c 65 72 | 73 20 20 2d 2d 2d 2d 2d | Handler|s -----|
|00003610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00003630| 0d 6f 6e 20 77 6d 0d 69 | 66 20 22 57 69 6e 64 6f |.on wm.i|f "Windo|
|00003640| 77 20 4d 67 72 2e 22 20 | 69 73 20 69 6e 20 74 68 |w Mgr." |is in th|
|00003650| 65 20 77 69 6e 64 6f 77 | 73 0d 74 68 65 6e 20 63 |e window|s.then c|
|00003660| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 57 69 6e |lose win|dow "Win|
|00003670| 64 6f 77 20 4d 67 72 2e | 22 20 2d 2d 20 c6 0d 65 |dow Mgr.|" -- ..e|
|00003680| 6c 73 65 20 70 61 6c 65 | 74 74 65 20 22 57 69 6e |lse pale|tte "Win|
|00003690| 64 6f 77 20 4d 67 72 2e | 22 20 2d 2d 20 c6 0d 65 |dow Mgr.|" -- ..e|
|000036a0| 6e 64 20 77 6d 0d 0d 6f | 6e 20 77 69 6e 64 6f 77 |nd wm..o|n window|
|000036b0| 4c 69 73 74 0d 70 75 74 | 20 22 43 68 6f 6f 73 65 |List.put| "Choose|
|000036c0| 20 61 20 77 69 6e 64 6f | 77 20 74 6f 20 73 68 6f | a windo|w to sho|
|000036d0| 77 3a 22 20 69 6e 74 6f | 20 70 72 6f 6d 70 74 20 |w:" into| prompt |
|000036e0| 2d 2d 20 c6 0d 67 65 74 | 20 73 68 6f 77 4c 69 73 |-- ..get| showLis|
|000036f0| 74 28 74 68 65 20 77 69 | 6e 64 6f 77 73 2c 70 72 |t(the wi|ndows,pr|
|00003700| 6f 6d 70 74 2c 66 61 6c | 73 65 2c 66 61 6c 73 65 |ompt,fal|se,false|
|00003710| 2c 22 4f 4b 2c 43 61 6e | 63 65 6c 22 2c 30 29 20 |,"OK,Can|cel",0) |
|00003720| 2d 2d 20 c6 0d 69 66 20 | 6c 69 6e 65 20 31 20 6f |-- ..if |line 1 o|
|00003730| 66 20 69 74 20 69 73 20 | 22 4f 4b 22 20 2d 2d 20 |f it is |"OK" -- |
|00003740| c6 0d 74 68 65 6e 20 73 | 68 6f 77 20 77 69 6e 64 |..then s|how wind|
|00003750| 6f 77 20 6c 69 6e 65 20 | 28 6c 69 6e 65 20 32 20 |ow line |(line 2 |
|00003760| 6f 66 20 69 74 29 20 6f | 66 20 74 68 65 20 77 69 |of it) o|f the wi|
|00003770| 6e 64 6f 77 73 0d 65 6e | 64 20 77 69 6e 64 6f 77 |ndows.en|d window|
|00003780| 4c 69 73 74 0d 0d 6f 6e | 20 77 69 6e 64 6f 77 49 |List..on| windowI|
|00003790| 6e 66 6f 0d 61 6e 73 77 | 65 72 20 22 53 74 61 63 |nfo.answ|er "Stac|
|000037a0| 6b 3a 22 20 26 26 20 28 | 74 68 65 20 73 68 6f 72 |k:" && (|the shor|
|000037b0| 74 20 6e 61 6d 65 20 6f | 66 20 74 68 69 73 20 73 |t name o|f this s|
|000037c0| 74 61 63 6b 29 20 26 20 | 72 65 74 75 72 6e 20 26 |tack) & |return &|
|000037d0| 20 c2 0d 22 53 74 61 63 | 6b 20 52 65 63 74 3a 22 | .."Stac|k Rect:"|
|000037e0| 20 26 26 20 28 74 68 65 | 20 72 65 63 74 20 6f 66 | && (the| rect of|
|000037f0| 20 63 64 20 77 69 6e 64 | 6f 77 29 20 26 20 72 65 | cd wind|ow) & re|
|00003800| 74 75 72 6e 20 26 20 c2 | 0d 22 53 74 61 63 6b 20 |turn & .|."Stack |
|00003810| 4c 6f 63 3a 22 20 26 26 | 20 28 74 68 65 20 4c 6f |Loc:" &&| (the Lo|
|00003820| 63 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 29 20 |c of cd |window) |
|00003830| 26 20 72 65 74 75 72 6e | 20 26 20 c2 0d 22 43 61 |& return| & .."Ca|
|00003840| 72 64 20 52 65 63 74 3a | 22 20 26 26 20 28 74 68 |rd Rect:|" && (th|
|00003850| 65 20 72 65 63 74 20 6f | 66 20 74 68 69 73 20 63 |e rect o|f this c|
|00003860| 64 29 20 26 20 72 65 74 | 75 72 6e 20 26 20 c2 0d |d) & ret|urn & ..|
|00003870| 22 53 63 72 65 65 6e 20 | 52 65 63 74 3a 22 20 26 |"Screen |Rect:" &|
|00003880| 26 20 28 74 68 65 20 53 | 63 72 65 65 6e 52 65 63 |& (the S|creenRec|
|00003890| 74 29 20 2d 2d 20 c6 0d | 65 6e 64 20 77 69 6e 64 |t) -- ..|end wind|
|000038a0| 6f 77 49 6e 66 6f 0d 0d | 6f 6e 20 63 61 73 63 61 |owInfo..|on casca|
|000038b0| 64 65 0d 69 66 20 74 68 | 65 20 6e 75 6d 62 65 72 |de.if th|e number|
|000038c0| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 74 68 65 | of line|s in the|
|000038d0| 20 73 74 61 63 6b 73 20 | 3c 3d 20 31 0d 74 68 65 | stacks |<= 1.the|
|000038e0| 6e 20 65 78 69 74 20 63 | 61 73 63 61 64 65 0d 70 |n exit c|ascade.p|
|000038f0| 75 74 20 22 30 2c 32 30 | 22 20 69 6e 74 6f 20 6e |ut "0,20|" into n|
|00003900| 65 77 4c 6f 63 0d 70 75 | 74 20 74 68 65 20 73 74 |ewLoc.pu|t the st|
|00003910| 61 63 6b 73 20 69 6e 74 | 6f 20 74 68 65 53 74 61 |acks int|o theSta|
|00003920| 63 6b 73 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |cks.put |the numb|
|00003930| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 74 |er of li|nes in t|
|00003940| 68 65 53 74 61 63 6b 73 | 20 69 6e 74 6f 20 6e 75 |heStacks| into nu|
|00003950| 6d 4c 69 6e 65 73 0d 72 | 65 70 65 61 74 20 77 69 |mLines.r|epeat wi|
|00003960| 74 68 20 63 6f 75 6e 74 | 20 3d 20 6e 75 6d 4c 69 |th count| = numLi|
|00003970| 6e 65 73 20 64 6f 77 6e | 20 74 6f 20 31 0d 69 66 |nes down| to 1.if|
|00003980| 20 6e 6f 74 20 74 68 65 | 20 6c 6f 6e 67 57 69 6e | not the| longWin|
|00003990| 64 6f 77 54 69 74 6c 65 | 73 0d 74 68 65 6e 20 67 |dowTitle|s.then g|
|000039a0| 65 74 20 73 74 72 69 70 | 50 61 74 68 28 6c 69 6e |et strip|Path(lin|
|000039b0| 65 20 63 6f 75 6e 74 20 | 6f 66 20 74 68 65 53 74 |e count |of theSt|
|000039c0| 61 63 6b 73 29 0d 65 6c | 73 65 20 67 65 74 20 6c |acks).el|se get l|
|000039d0| 69 6e 65 20 63 6f 75 6e | 74 20 6f 66 20 74 68 65 |ine coun|t of the|
|000039e0| 53 74 61 63 6b 73 0d 61 | 64 64 20 31 36 20 74 6f |Stacks.a|dd 16 to|
|000039f0| 20 69 74 65 6d 20 31 20 | 6f 66 20 6e 65 77 4c 6f | item 1 |of newLo|
|00003a00| 63 0d 61 64 64 20 32 30 | 20 74 6f 20 69 74 65 6d |c.add 20| to item|
|00003a10| 20 32 20 6f 66 20 6e 65 | 77 4c 6f 63 0d 73 65 74 | 2 of ne|wLoc.set|
|00003a20| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 77 69 6e 64 | the loc| of wind|
|00003a30| 6f 77 20 28 69 74 29 20 | 74 6f 20 6e 65 77 4c 6f |ow (it) |to newLo|
|00003a40| 63 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |c.end re|peat.end|
|00003a50| 20 63 61 73 63 61 64 65 | 0d 0d 6f 6e 20 72 65 61 | cascade|..on rea|
|00003a60| 6c 69 67 6e 57 69 6e 64 | 6f 77 20 70 6f 72 74 69 |lignWind|ow porti|
|00003a70| 6f 6e 31 2c 70 6f 72 74 | 69 6f 6e 32 0d 73 65 74 |on1,port|ion2.set|
|00003a80| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00003a90| 0d 70 75 74 20 69 74 65 | 6d 20 31 20 6f 66 20 74 |.put ite|m 1 of t|
|00003aa0| 68 65 20 73 63 72 65 65 | 6e 52 65 63 74 20 69 6e |he scree|nRect in|
|00003ab0| 74 6f 20 73 63 72 6e 4c | 65 66 74 0d 70 75 74 20 |to scrnL|eft.put |
|00003ac0| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 20 73 63 |item 2 o|f the sc|
|00003ad0| 72 65 65 6e 52 65 63 74 | 20 69 6e 74 6f 20 73 63 |reenRect| into sc|
|00003ae0| 72 6e 54 6f 70 0d 70 75 | 74 20 69 74 65 6d 20 33 |rnTop.pu|t item 3|
|00003af0| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 52 65 | of the |screenRe|
|00003b00| 63 74 20 69 6e 74 6f 20 | 73 63 72 6e 52 69 67 68 |ct into |scrnRigh|
|00003b10| 74 0d 70 75 74 20 69 74 | 65 6d 20 34 20 6f 66 20 |t.put it|em 4 of |
|00003b20| 74 68 65 20 73 63 72 65 | 65 6e 52 65 63 74 20 69 |the scre|enRect i|
|00003b30| 6e 74 6f 20 73 63 72 6e | 42 6f 74 74 6f 6d 0d 70 |nto scrn|Bottom.p|
|00003b40| 75 74 20 73 63 72 6e 52 | 69 67 68 74 20 2d 20 73 |ut scrnR|ight - s|
|00003b50| 63 72 6e 4c 65 66 74 20 | 69 6e 74 6f 20 73 63 72 |crnLeft |into scr|
|00003b60| 6e 57 69 64 74 68 0d 70 | 75 74 20 73 63 72 6e 42 |nWidth.p|ut scrnB|
|00003b70| 6f 74 74 6f 6d 20 2d 20 | 73 63 72 6e 54 6f 70 20 |ottom - |scrnTop |
|00003b80| 69 6e 74 6f 20 73 63 72 | 6e 48 65 69 67 68 74 0d |into scr|nHeight.|
|00003b90| 70 75 74 20 73 63 72 6e | 57 69 64 74 68 20 64 69 |put scrn|Width di|
|00003ba0| 76 20 34 20 69 6e 74 6f | 20 68 6f 72 7a 49 6e 63 |v 4 into| horzInc|
|00003bb0| 0d 70 75 74 20 73 63 72 | 6e 48 65 69 67 68 74 20 |.put scr|nHeight |
|00003bc0| 64 69 76 20 34 20 69 6e | 74 6f 20 76 65 72 74 49 |div 4 in|to vertI|
|00003bd0| 6e 63 0d 70 75 74 20 77 | 69 64 74 68 20 6f 66 20 |nc.put w|idth of |
|00003be0| 63 64 20 77 69 6e 64 6f | 77 20 64 69 76 20 32 20 |cd windo|w div 2 |
|00003bf0| 69 6e 74 6f 20 68 6f 72 | 7a 4f 66 66 73 65 74 0d |into hor|zOffset.|
|00003c00| 70 75 74 20 68 65 69 67 | 68 74 20 6f 66 20 63 64 |put heig|ht of cd|
|00003c10| 20 77 69 6e 64 6f 77 20 | 64 69 76 20 32 20 69 6e | window |div 2 in|
|00003c20| 74 6f 20 76 65 72 74 4f | 66 66 73 65 74 0d 69 66 |to vertO|ffset.if|
|00003c30| 20 70 6f 72 74 69 6f 6e | 31 20 69 73 20 22 63 65 | portion|1 is "ce|
|00003c40| 6e 74 65 72 22 20 74 68 | 65 6e 0d 70 75 74 20 28 |nter" th|en.put (|
|00003c50| 73 63 72 6e 57 69 64 74 | 68 20 64 69 76 20 32 29 |scrnWidt|h div 2)|
|00003c60| 20 69 6e 74 6f 20 68 6f | 72 7a 43 65 6e 74 65 72 | into ho|rzCenter|
|00003c70| 0d 70 75 74 20 28 73 63 | 72 6e 48 65 69 67 68 74 |.put (sc|rnHeight|
|00003c80| 20 64 69 76 20 32 29 20 | 69 6e 74 6f 20 76 65 72 | div 2) |into ver|
|00003c90| 74 43 65 6e 74 65 72 0d | 73 65 74 20 6c 6f 63 20 |tCenter.|set loc |
|00003ca0| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 20 74 6f 20 |of cd wi|ndow to |
|00003cb0| 68 6f 72 7a 43 65 6e 74 | 65 72 20 2d 20 68 6f 72 |horzCent|er - hor|
|00003cc0| 7a 4f 66 66 73 65 74 2c | 76 65 72 74 43 65 6e 74 |zOffset,|vertCent|
|00003cd0| 65 72 20 2d 20 76 65 72 | 74 4f 66 66 73 65 74 0d |er - ver|tOffset.|
|00003ce0| 65 6c 73 65 0d 69 66 20 | 70 6f 72 74 69 6f 6e 32 |else.if |portion2|
|00003cf0| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 61 | is empt|y then.a|
|00003d00| 64 64 20 34 30 20 74 6f | 20 73 63 72 6e 54 6f 70 |dd 40 to| scrnTop|
|00003d10| 0d 64 6f 28 22 73 65 74 | 22 20 26 26 20 70 6f 72 |.do("set|" && por|
|00003d20| 74 69 6f 6e 31 20 26 26 | 20 22 6f 66 20 63 61 72 |tion1 &&| "of car|
|00003d30| 64 20 77 69 6e 64 6f 77 | 20 74 6f 22 20 26 26 20 |d window| to" && |
|00003d40| 28 22 73 63 72 6e 22 20 | 26 20 70 6f 72 74 69 6f |("scrn" |& portio|
|00003d50| 6e 31 29 29 0d 65 6c 73 | 65 0d 69 66 20 70 6f 72 |n1)).els|e.if por|
|00003d60| 74 69 6f 6e 31 20 69 73 | 20 22 62 6f 74 74 6f 6d |tion1 is| "bottom|
|00003d70| 22 20 74 68 65 6e 20 6d | 75 6c 74 69 70 6c 79 20 |" then m|ultiply |
|00003d80| 76 65 72 74 49 6e 63 20 | 62 79 20 33 0d 69 66 20 |vertInc |by 3.if |
|00003d90| 70 6f 72 74 69 6f 6e 32 | 20 69 73 20 22 72 69 67 |portion2| is "rig|
|00003da0| 68 74 22 20 74 68 65 6e | 20 6d 75 6c 74 69 70 6c |ht" then| multipl|
|00003db0| 79 20 68 6f 72 7a 49 6e | 63 20 62 79 20 33 0d 73 |y horzIn|c by 3.s|
|00003dc0| 65 74 20 6c 6f 63 20 6f | 66 20 63 64 20 77 69 6e |et loc o|f cd win|
|00003dd0| 64 6f 77 20 74 6f 20 28 | 73 63 72 6e 4c 65 66 74 |dow to (|scrnLeft|
|00003de0| 20 2b 20 68 6f 72 7a 49 | 6e 63 20 2d 20 68 6f 72 | + horzI|nc - hor|
|00003df0| 7a 4f 66 66 73 65 74 29 | 2c 28 73 63 72 6e 54 6f |zOffset)|,(scrnTo|
|00003e00| 70 20 2b 20 76 65 72 74 | 49 6e 63 20 2d 20 76 65 |p + vert|Inc - ve|
|00003e10| 72 74 4f 66 66 73 65 74 | 29 0d 65 6e 64 20 69 66 |rtOffset|).end if|
|00003e20| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 61 6c |.end if.|end real|
|00003e30| 69 67 6e 57 69 6e 64 6f | 77 0d 0d 2d 2d 2d 2d 2d |ignWindo|w..-----|
|00003e40| 20 20 53 75 70 65 72 20 | 47 72 6f 75 70 65 72 20 | Super |Grouper |
|00003e50| 48 61 6e 64 6c 65 72 73 | 20 20 2d 2d 2d 2d 2d 2d |Handlers| ------|
|00003e60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003e70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 0d 6f |--------|-----..o|
|00003e80| 6e 20 73 67 0d 69 66 20 | 74 68 65 72 65 20 69 73 |n sg.if |there is|
|00003e90| 20 61 20 77 69 6e 64 6f | 77 20 22 53 75 70 65 72 | a windo|w "Super|
|00003ea0| 20 47 72 6f 75 70 65 72 | 22 20 74 68 65 6e 0d 63 | Grouper|" then.c|
|00003eb0| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 53 75 70 |lose win|dow "Sup|
|00003ec0| 65 72 20 47 72 6f 75 70 | 65 72 22 20 2d 2d 20 c6 |er Group|er" -- .|
|00003ed0| 0d 65 6c 73 65 20 70 61 | 6c 65 74 74 65 20 22 53 |.else pa|lette "S|
|00003ee0| 75 70 65 72 20 47 72 6f | 75 70 65 72 22 20 2d 2d |uper Gro|uper" --|
|00003ef0| 20 c6 0d 65 6e 64 20 73 | 67 0d 0d 6f 6e 20 66 61 | ..end s|g..on fa|
|00003f00| 69 6c 20 77 68 61 74 0d | 75 6e 48 69 6c 69 74 65 |il what.|unHilite|
|00003f10| 50 61 6c 65 74 74 65 42 | 74 6e 0d 69 66 20 77 68 |PaletteB|tn.if wh|
|00003f20| 61 74 20 ad 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |at . emp|ty then.|
|00003f30| 62 65 65 70 0d 61 6e 73 | 77 65 72 20 77 68 61 74 |beep.ans|wer what|
|00003f40| 0d 65 6e 64 20 69 66 0d | 65 78 69 74 20 74 6f 20 |.end if.|exit to |
|00003f50| 68 79 70 65 72 43 61 72 | 64 0d 65 6e 64 20 66 61 |hyperCar|d.end fa|
|00003f60| 69 6c 0d 0d 6f 6e 20 63 | 6f 6e 66 69 72 6d 20 77 |il..on c|onfirm w|
|00003f70| 68 61 74 0d 61 6e 73 77 | 65 72 20 77 68 61 74 20 |hat.answ|er what |
|00003f80| 77 69 74 68 20 22 43 61 | 6e 63 65 6c 22 20 6f 72 |with "Ca|ncel" or|
|00003f90| 20 22 4f 4b 22 20 2d 2d | 20 c6 0d 69 66 20 69 74 | "OK" --| ..if it|
|00003fa0| 20 3d 20 22 43 61 6e 63 | 65 6c 22 20 74 68 65 6e | = "Canc|el" then|
|00003fb0| 20 2d 2d 20 c6 0d 75 6e | 48 69 6c 69 74 65 50 61 | -- ..un|HilitePa|
|00003fc0| 6c 65 74 74 65 42 74 6e | 0d 65 78 69 74 20 74 6f |letteBtn|.exit to|
|00003fd0| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|00003fe0| 66 0d 65 6e 64 20 63 6f | 6e 66 69 72 6d 0d 0d 6f |f.end co|nfirm..o|
|00003ff0| 6e 20 43 68 65 63 6b 47 | 72 6f 75 70 0d 67 6c 6f |n CheckG|roup.glo|
|00004000| 62 61 6c 20 4f 62 6a 65 | 63 74 4c 69 73 74 2c 20 |bal Obje|ctList, |
|00004010| 4e 75 6d 62 65 72 4f 66 | 49 74 65 6d 73 2c 20 57 |NumberOf|Items, W|
|00004020| 68 65 72 65 54 68 65 47 | 72 6f 75 70 49 73 0d 69 |hereTheG|roupIs.i|
|00004030| 66 20 28 4f 62 6a 65 63 | 74 4c 69 73 74 20 69 73 |f (Objec|tList is|
|00004040| 20 65 6d 70 74 79 29 20 | 6f 72 20 28 4e 75 6d 62 | empty) |or (Numb|
|00004050| 65 72 4f 66 49 74 65 6d | 73 20 69 73 20 65 6d 70 |erOfItem|s is emp|
|00004060| 74 79 29 20 6f 72 20 c2 | 0d 28 57 68 65 72 65 54 |ty) or .|.(WhereT|
|00004070| 68 65 47 72 6f 75 70 49 | 73 20 69 73 20 65 6d 70 |heGroupI|s is emp|
|00004080| 74 79 29 20 74 68 65 6e | 20 66 61 69 6c 20 22 4e |ty) then| fail "N|
|00004090| 6f 20 6f 62 6a 65 63 74 | 73 20 68 61 76 65 20 62 |o object|s have b|
|000040a0| 65 65 6e 20 67 72 6f 75 | 70 65 64 2e 22 20 2d 2d |een grou|ped." --|
|000040b0| 20 c6 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 73 | ..lock |screen.s|
|000040c0| 65 74 20 6c 6f 63 6b 4d | 65 73 73 61 67 65 73 20 |et lockM|essages |
|000040d0| 74 6f 20 74 72 75 65 20 | 2d 2d 20 31 2f 35 2f 39 |to true |-- 1/5/9|
|000040e0| 36 20 66 6f 72 20 48 2f | 43 20 32 2e 33 2e 35 0d |6 for H/|C 2.3.5.|
|000040f0| 70 75 73 68 20 63 64 0d | 67 6f 20 57 68 65 72 65 |push cd.|go Where|
|00004100| 54 68 65 47 72 6f 75 70 | 49 73 0d 72 65 70 65 61 |TheGroup|Is.repea|
|00004110| 74 20 77 69 74 68 20 6f | 62 6a 4e 64 78 20 3d 20 |t with o|bjNdx = |
|00004120| 4e 75 6d 62 65 72 4f 66 | 49 74 65 6d 73 20 64 6f |NumberOf|Items do|
|00004130| 77 6e 20 74 6f 20 31 0d | 69 66 20 6e 6f 74 20 4f |wn to 1.|if not O|
|00004140| 62 6a 45 78 69 73 74 73 | 28 69 74 65 6d 20 6f 62 |bjExists|(item ob|
|00004150| 6a 4e 64 78 20 6f 66 20 | 4f 62 6a 65 63 74 4c 69 |jNdx of |ObjectLi|
|00004160| 73 74 29 0d 74 68 65 6e | 20 64 65 6c 65 74 65 20 |st).then| delete |
|00004170| 69 74 65 6d 20 6f 62 6a | 4e 64 78 20 6f 66 20 4f |item obj|Ndx of O|
|00004180| 62 6a 65 63 74 4c 69 73 | 74 0d 65 6e 64 20 72 65 |bjectLis|t.end re|
|00004190| 70 65 61 74 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |peat.put| the num|
|000041a0| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 69 6e 20 |ber of i|tems in |
|000041b0| 4f 62 6a 65 63 74 4c 69 | 73 74 20 69 6e 74 6f 20 |ObjectLi|st into |
|000041c0| 4e 75 6d 62 65 72 4f 66 | 49 74 65 6d 73 0d 70 6f |NumberOf|Items.po|
|000041d0| 70 20 63 64 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |p cd.unl|ock scre|
|000041e0| 65 6e 0d 69 66 20 4f 62 | 6a 65 63 74 4c 69 73 74 |en.if Ob|jectList|
|000041f0| 20 3d 20 65 6d 70 74 79 | 20 74 68 65 6e 20 66 61 | = empty| then fa|
|00004200| 69 6c 20 22 4e 6f 20 6f | 62 6a 65 63 74 73 20 68 |il "No o|bjects h|
|00004210| 61 76 65 20 62 65 65 6e | 20 67 72 6f 75 70 65 64 |ave been| grouped|
|00004220| 2e 22 20 2d 2d 20 c6 0d | 65 6e 64 20 43 68 65 63 |." -- ..|end Chec|
|00004230| 6b 47 72 6f 75 70 0d 0d | 66 75 6e 63 74 69 6f 6e |kGroup..|function|
|00004240| 20 4f 62 6a 45 78 69 73 | 74 73 20 74 68 65 4f 62 | ObjExis|ts theOb|
|00004250| 6a 65 63 74 0d 67 65 74 | 20 74 68 65 20 76 61 6c |ject.get| the val|
|00004260| 75 65 20 6f 66 20 28 22 | 74 68 65 72 65 20 69 73 |ue of ("|there is|
|00004270| 20 61 22 20 26 26 20 74 | 68 65 4f 62 6a 65 63 74 | a" && t|heObject|
|00004280| 29 0d 72 65 74 75 72 6e | 20 69 74 0d 65 6e 64 20 |).return| it.end |
|00004290| 4f 62 6a 45 78 69 73 74 | 73 0d 0d 6f 6e 20 75 6e |ObjExist|s..on un|
|000042a0| 48 69 6c 69 74 65 50 61 | 6c 65 74 74 65 42 74 6e |HilitePa|letteBtn|
|000042b0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|000042c0| 69 6e 64 6f 77 20 22 53 | 75 70 65 72 20 47 72 6f |indow "S|uper Gro|
|000042d0| 75 70 65 72 22 20 2d 2d | 20 c6 0d 74 68 65 6e 20 |uper" --| ..then |
|000042e0| 73 65 74 20 68 69 6c 69 | 74 65 64 42 75 74 74 6f |set hili|tedButto|
|000042f0| 6e 20 6f 66 20 77 69 6e | 64 6f 77 20 22 53 75 70 |n of win|dow "Sup|
|00004300| 65 72 20 47 72 6f 75 70 | 65 72 22 20 74 6f 20 30 |er Group|er" to 0|
|00004310| 20 2d 2d 20 c6 0d 65 6e | 64 20 75 6e 48 69 6c 69 | -- ..en|d unHili|
|00004320| 74 65 50 61 6c 65 74 74 | 65 42 74 6e 0d 0d 6f 6e |tePalett|eBtn..on|
|00004330| 20 73 74 61 72 74 47 72 | 6f 75 70 69 6e 67 0d 67 | startGr|ouping.g|
|00004340| 6c 6f 62 61 6c 20 4f 62 | 6a 65 63 74 4c 69 73 74 |lobal Ob|jectList|
|00004350| 2c 4e 75 6d 62 65 72 4f | 66 49 74 65 6d 73 2c 57 |,NumberO|fItems,W|
|00004360| 68 65 72 65 54 68 65 47 | 72 6f 75 70 49 73 0d 70 |hereTheG|roupIs.p|
|00004370| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 4f 62 |ut empty| into Ob|
|00004380| 6a 65 63 74 4c 69 73 74 | 0d 70 75 74 20 65 6d 70 |jectList|.put emp|
|00004390| 74 79 20 69 6e 74 6f 20 | 57 68 65 72 65 54 68 65 |ty into |WhereThe|
|000043a0| 47 72 6f 75 70 49 73 0d | 69 66 20 74 68 65 20 6f |GroupIs.|if the o|
|000043b0| 70 74 69 6f 6e 4b 65 79 | 20 69 73 20 64 6f 77 6e |ptionKey| is down|
|000043c0| 20 74 68 65 6e 0d 69 66 | 20 74 68 65 20 73 68 69 | then.if| the shi|
|000043d0| 66 74 4b 65 79 20 69 73 | 20 75 70 20 74 68 65 6e |ftKey is| up then|
|000043e0| 0d 63 6f 6e 66 69 72 6d | 20 22 57 69 74 68 20 74 |.confirm| "With t|
|000043f0| 68 65 20 6d 6f 75 73 65 | 22 20 26 26 20 c2 0d 22 |he mouse|" && .."|
|00004400| 62 75 74 74 6f 6e 20 70 | 72 65 73 73 65 64 2c 20 |button p|ressed, |
|00004410| 64 72 61 67 20 74 68 65 | 20 6d 61 72 63 68 69 6e |drag the| marchin|
|00004420| 67 20 61 6e 74 73 20 74 | 6f 20 69 6e 63 6c 75 64 |g ants t|o includ|
|00004430| 65 22 20 26 26 20 c2 0d | 22 62 75 74 74 6f 6e 73 |e" && ..|"buttons|
|00004440| 20 61 6e 64 20 66 69 65 | 6c 64 73 20 79 6f 75 20 | and fie|lds you |
|00004450| 77 61 6e 74 20 67 72 6f | 75 70 65 64 2e 22 20 2d |want gro|uped." -|
|00004460| 2d 20 c6 0d 65 6c 73 65 | 0d 73 65 74 20 63 75 72 |- ..else|.set cur|
|00004470| 73 6f 72 20 74 6f 20 63 | 72 6f 73 73 0d 77 61 69 |sor to c|ross.wai|
|00004480| 74 20 33 30 0d 77 61 69 | 74 20 75 6e 74 69 6c 20 |t 30.wai|t until |
|00004490| 74 68 65 20 6d 6f 75 73 | 65 20 69 73 20 64 6f 77 |the mous|e is dow|
|000044a0| 6e 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 41 6e 74 |n.end if|.put Ant|
|000044b0| 73 28 29 20 69 6e 74 6f | 20 73 65 6c 65 63 74 52 |s() into| selectR|
|000044c0| 65 63 74 0d 77 69 74 68 | 69 6e 52 65 63 74 20 73 |ect.with|inRect s|
|000044d0| 65 6c 65 63 74 52 65 63 | 74 0d 65 6c 73 65 0d 72 |electRec|t.else.r|
|000044e0| 65 70 65 61 74 0d 73 65 | 74 20 63 75 72 73 6f 72 |epeat.se|t cursor|
|000044f0| 20 74 6f 20 33 0d 69 66 | 20 74 68 65 20 6d 6f 75 | to 3.if| the mou|
|00004500| 73 65 43 6c 69 63 6b 20 | 74 68 65 6e 0d 73 65 74 |seClick |then.set|
|00004510| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00004520| 0d 70 75 74 20 69 74 65 | 6d 43 6c 69 63 6b 65 64 |.put ite|mClicked|
|00004530| 28 74 68 65 20 63 6c 69 | 63 6b 4c 6f 63 29 20 69 |(the cli|ckLoc) i|
|00004540| 6e 74 6f 20 68 69 74 57 | 68 61 74 0d 69 66 20 28 |nto hitW|hat.if (|
|00004550| 28 68 69 74 57 68 61 74 | 20 ad 20 65 6d 70 74 79 |(hitWhat| . empty|
|00004560| 29 20 61 6e 64 20 28 68 | 69 74 57 68 61 74 20 69 |) and (h|itWhat i|
|00004570| 73 20 6e 6f 74 20 69 6e | 20 4f 62 6a 65 63 74 4c |s not in| ObjectL|
|00004580| 69 73 74 29 29 0d 74 68 | 65 6e 0d 70 75 74 20 68 |ist)).th|en.put h|
|00004590| 69 74 57 68 61 74 20 26 | 20 22 2c 22 20 61 66 74 |itWhat &| "," aft|
|000045a0| 65 72 20 4f 62 6a 65 63 | 74 4c 69 73 74 0d 66 6c |er Objec|tList.fl|
|000045b0| 61 73 68 52 65 63 74 20 | 72 65 63 74 20 6f 66 20 |ashRect |rect of |
|000045c0| 68 69 74 57 68 61 74 2c | 32 30 0d 65 6c 73 65 20 |hitWhat,|20.else |
|000045d0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|000045e0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |if.end r|epeat.en|
|000045f0| 64 20 69 66 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |d if.set| cursor |
|00004600| 74 6f 20 61 72 72 6f 77 | 0d 69 66 20 4f 62 6a 65 |to arrow|.if Obje|
|00004610| 63 74 4c 69 73 74 20 ad | 20 65 6d 70 74 79 20 74 |ctList .| empty t|
|00004620| 68 65 6e 20 64 65 6c 65 | 74 65 20 6c 61 73 74 20 |hen dele|te last |
|00004630| 63 68 61 72 20 6f 66 20 | 4f 62 6a 65 63 74 4c 69 |char of |ObjectLi|
|00004640| 73 74 0d 70 75 74 20 74 | 68 65 20 6e 75 6d 62 65 |st.put t|he numbe|
|00004650| 72 20 6f 66 20 69 74 65 | 6d 73 20 69 6e 20 4f 62 |r of ite|ms in Ob|
|00004660| 6a 65 63 74 4c 69 73 74 | 20 69 6e 74 6f 20 4e 75 |jectList| into Nu|
|00004670| 6d 62 65 72 4f 66 49 74 | 65 6d 73 0d 75 6e 48 69 |mberOfIt|ems.unHi|
|00004680| 6c 69 74 65 50 61 6c 65 | 74 74 65 42 74 6e 0d 72 |litePale|tteBtn.r|
|00004690| 65 70 65 61 74 20 77 69 | 74 68 20 63 6f 75 6e 74 |epeat wi|th count|
|000046a0| 20 3d 20 31 20 74 6f 20 | 4e 75 6d 62 65 72 4f 66 | = 1 to |NumberOf|
|000046b0| 49 74 65 6d 73 0d 66 6c | 61 73 68 52 65 63 74 20 |Items.fl|ashRect |
|000046c0| 72 65 63 74 20 6f 66 20 | 69 74 65 6d 20 63 6f 75 |rect of |item cou|
|000046d0| 6e 74 20 6f 66 20 4f 62 | 6a 65 63 74 4c 69 73 74 |nt of Ob|jectList|
|000046e0| 2c 31 30 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 |,10.end |repeat.p|
|000046f0| 75 74 20 74 68 65 20 6c | 6f 6e 67 20 69 64 20 6f |ut the l|ong id o|
|00004700| 66 20 74 68 69 73 20 63 | 64 20 69 6e 74 6f 20 57 |f this c|d into W|
|00004710| 68 65 72 65 54 68 65 47 | 72 6f 75 70 49 73 0d 63 |hereTheG|roupIs.c|
|00004720| 68 6f 6f 73 65 20 62 72 | 6f 77 73 65 20 74 6f 6f |hoose br|owse too|
|00004730| 6c 0d 65 6e 64 20 73 74 | 61 72 74 47 72 6f 75 70 |l.end st|artGroup|
|00004740| 69 6e 67 0d 0d 6f 6e 20 | 77 69 74 68 69 6e 52 65 |ing..on |withinRe|
|00004750| 63 74 20 73 65 6c 65 63 | 74 52 65 63 74 0d 67 6c |ct selec|tRect.gl|
|00004760| 6f 62 61 6c 20 4f 62 6a | 65 63 74 4c 69 73 74 0d |obal Obj|ectList.|
|00004770| 70 75 74 20 22 63 64 20 | 62 74 6e 2c 63 64 20 66 |put "cd |btn,cd f|
|00004780| 6c 64 2c 62 67 20 62 74 | 6e 2c 62 67 20 66 6c 64 |ld,bg bt|n,bg fld|
|00004790| 22 20 69 6e 74 6f 20 6c | 69 73 74 0d 72 65 70 65 |" into l|ist.repe|
|000047a0| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|000047b0| 20 34 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f | 4.set c|ursor to|
|000047c0| 20 62 75 73 79 0d 70 75 | 74 20 69 74 65 6d 20 69 | busy.pu|t item i|
|000047d0| 20 6f 66 20 6c 69 73 74 | 20 69 6e 74 6f 20 6f 62 | of list| into ob|
|000047e0| 6a 65 63 74 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |ject.put| the num|
|000047f0| 62 65 72 20 6f 66 20 28 | 69 74 65 6d 20 69 20 6f |ber of (|item i o|
|00004800| 66 20 6c 69 73 74 20 26 | 20 22 73 22 29 20 69 6e |f list &| "s") in|
|00004810| 74 6f 20 6e 75 6d 62 65 | 72 4f 66 4f 62 6a 65 63 |to numbe|rOfObjec|
|00004820| 74 73 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |ts.repea|t with i|
|00004830| 20 3d 20 6e 75 6d 62 65 | 72 4f 66 4f 62 6a 65 63 | = numbe|rOfObjec|
|00004840| 74 73 20 64 6f 77 6e 20 | 74 6f 20 31 0d 73 65 74 |ts down |to 1.set|
|00004850| 20 63 75 72 73 6f 72 20 | 74 6f 20 62 75 73 79 0d | cursor |to busy.|
|00004860| 69 66 20 49 6e 74 65 72 | 73 65 63 74 52 65 63 74 |if Inter|sectRect|
|00004870| 28 72 65 63 74 20 6f 66 | 20 28 6f 62 6a 65 63 74 |(rect of| (object|
|00004880| 20 26 26 20 69 29 2c 73 | 65 6c 65 63 74 52 65 63 | && i),s|electRec|
|00004890| 74 29 20 74 68 65 6e 0d | 69 66 20 76 69 73 69 62 |t) then.|if visib|
|000048a0| 6c 65 20 6f 66 20 28 6f | 62 6a 65 63 74 20 26 26 |le of (o|bject &&|
|000048b0| 20 69 29 0d 74 68 65 6e | 20 70 75 74 20 28 6f 62 | i).then| put (ob|
|000048c0| 6a 65 63 74 20 26 26 20 | 22 69 64 22 29 20 26 26 |ject && |"id") &&|
|000048d0| 20 28 74 68 65 20 69 64 | 20 6f 66 20 28 6f 62 6a | (the id| of (obj|
|000048e0| 65 63 74 20 26 26 20 69 | 29 29 c2 0d 26 20 22 2c |ect && i|))..& ",|
|000048f0| 22 20 61 66 74 65 72 20 | 4f 62 6a 65 63 74 4c 69 |" after |ObjectLi|
|00004900| 73 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |st.end i|f.end re|
|00004910| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00004920| 65 6e 64 20 77 69 74 68 | 69 6e 52 65 63 74 0d 0d |end with|inRect..|
|00004930| 66 75 6e 63 74 69 6f 6e | 20 69 74 65 6d 43 6c 69 |function| itemCli|
|00004940| 63 6b 65 64 20 77 68 65 | 72 65 0d 70 75 74 20 22 |cked whe|re.put "|
|00004950| 63 64 20 62 74 6e 2c 63 | 64 20 66 6c 64 2c 62 67 |cd btn,c|d fld,bg|
|00004960| 20 62 74 6e 2c 62 67 20 | 66 6c 64 22 20 69 6e 74 | btn,bg |fld" int|
|00004970| 6f 20 6c 69 73 74 0d 72 | 65 70 65 61 74 20 77 69 |o list.r|epeat wi|
|00004980| 74 68 20 69 20 3d 20 31 | 20 74 6f 20 34 0d 70 75 |th i = 1| to 4.pu|
|00004990| 74 20 69 74 65 6d 20 69 | 20 6f 66 20 6c 69 73 74 |t item i| of list|
|000049a0| 20 69 6e 74 6f 20 6f 62 | 6a 65 63 74 0d 70 75 74 | into ob|ject.put|
|000049b0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 28 | the num|ber of (|
|000049c0| 69 74 65 6d 20 69 20 6f | 66 20 6c 69 73 74 20 26 |item i o|f list &|
|000049d0| 20 22 73 22 29 20 69 6e | 74 6f 20 6e 75 6d 62 65 | "s") in|to numbe|
|000049e0| 72 4f 66 4f 62 6a 65 63 | 74 73 0d 72 65 70 65 61 |rOfObjec|ts.repea|
|000049f0| 74 20 77 69 74 68 20 69 | 20 3d 20 6e 75 6d 62 65 |t with i| = numbe|
|00004a00| 72 4f 66 4f 62 6a 65 63 | 74 73 20 64 6f 77 6e 20 |rOfObjec|ts down |
|00004a10| 74 6f 20 31 0d 69 66 20 | 77 68 65 72 65 20 69 73 |to 1.if |where is|
|00004a20| 20 77 69 74 68 69 6e 20 | 72 65 63 74 20 6f 66 20 | within |rect of |
|00004a30| 28 6f 62 6a 65 63 74 20 | 26 26 20 69 29 20 74 68 |(object |&& i) th|
|00004a40| 65 6e 0d 69 66 20 76 69 | 73 69 62 6c 65 20 6f 66 |en.if vi|sible of|
|00004a50| 20 28 6f 62 6a 65 63 74 | 20 26 26 20 69 29 0d 74 | (object| && i).t|
|00004a60| 68 65 6e 20 72 65 74 75 | 72 6e 20 28 6f 62 6a 65 |hen retu|rn (obje|
|00004a70| 63 74 20 26 26 20 22 69 | 64 22 29 20 26 26 20 28 |ct && "i|d") && (|
|00004a80| 74 68 65 20 69 64 20 6f | 66 20 28 6f 62 6a 65 63 |the id o|f (objec|
|00004a90| 74 20 26 26 20 69 29 29 | 0d 65 6e 64 20 69 66 0d |t && i))|.end if.|
|00004aa0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |end repe|at.end r|
|00004ab0| 65 70 65 61 74 0d 72 65 | 74 75 72 6e 20 65 6d 70 |epeat.re|turn emp|
|00004ac0| 74 79 0d 65 6e 64 20 69 | 74 65 6d 43 6c 69 63 6b |ty.end i|temClick|
|00004ad0| 65 64 0d 0d 6f 6e 20 6d | 6f 76 65 4f 62 6a 65 63 |ed..on m|oveObjec|
|00004ae0| 74 73 0d 67 6c 6f 62 61 | 6c 20 4e 75 6d 62 65 72 |ts.globa|l Number|
|00004af0| 4f 66 49 74 65 6d 73 2c | 4f 62 6a 65 63 74 4c 69 |OfItems,|ObjectLi|
|00004b00| 73 74 2c 57 68 65 72 65 | 54 68 65 47 72 6f 75 70 |st,Where|TheGroup|
|00004b10| 49 73 0d 63 68 65 63 6b | 47 72 6f 75 70 0d 67 6f |Is.check|Group.go|
|00004b20| 20 57 68 65 72 65 54 68 | 65 47 72 6f 75 70 49 73 | WhereTh|eGroupIs|
|00004b30| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 61 |.set cur|sor to a|
|00004b40| 72 72 6f 77 0d 77 61 69 | 74 20 75 6e 74 69 6c 20 |rrow.wai|t until |
|00004b50| 74 68 65 20 6d 6f 75 73 | 65 43 6c 69 63 6b 0d 70 |the mous|eClick.p|
|00004b60| 75 74 20 74 68 65 20 63 | 6c 69 63 6b 4c 6f 63 20 |ut the c|lickLoc |
|00004b70| 69 6e 74 6f 20 74 68 69 | 73 4c 6f 63 0d 72 65 70 |into thi|sLoc.rep|
|00004b80| 65 61 74 20 77 68 69 6c | 65 20 74 68 65 20 6d 6f |eat whil|e the mo|
|00004b90| 75 73 65 20 3d 20 64 6f | 77 6e 0d 70 75 74 20 74 |use = do|wn.put t|
|00004ba0| 68 69 73 4c 6f 63 20 69 | 6e 74 6f 20 6c 61 73 74 |hisLoc i|nto last|
|00004bb0| 4c 6f 63 0d 70 75 74 20 | 74 68 65 20 6d 6f 75 73 |Loc.put |the mous|
|00004bc0| 65 4c 6f 63 20 69 6e 74 | 6f 20 74 68 69 73 4c 6f |eLoc int|o thisLo|
|00004bd0| 63 0d 69 66 20 74 68 69 | 73 4c 6f 63 20 ad 20 6c |c.if thi|sLoc . l|
|00004be0| 61 73 74 4c 6f 63 20 74 | 68 65 6e 0d 70 75 74 20 |astLoc t|hen.put |
|00004bf0| 28 69 74 65 6d 20 31 20 | 6f 66 20 74 68 69 73 4c |(item 1 |of thisL|
|00004c00| 6f 63 20 2d 20 69 74 65 | 6d 20 31 20 6f 66 20 6c |oc - ite|m 1 of l|
|00004c10| 61 73 74 4c 6f 63 29 20 | 69 6e 74 6f 20 64 65 6c |astLoc) |into del|
|00004c20| 74 61 58 0d 70 75 74 20 | 28 69 74 65 6d 20 32 20 |taX.put |(item 2 |
|00004c30| 6f 66 20 74 68 69 73 4c | 6f 63 20 2d 20 69 74 65 |of thisL|oc - ite|
|00004c40| 6d 20 32 20 6f 66 20 6c | 61 73 74 4c 6f 63 29 20 |m 2 of l|astLoc) |
|00004c50| 69 6e 74 6f 20 64 65 6c | 74 61 59 0d 6c 6f 63 6b |into del|taY.lock|
|00004c60| 20 73 63 72 65 65 6e 0d | 72 65 70 65 61 74 20 77 | screen.|repeat w|
|00004c70| 69 74 68 20 63 6f 75 6e | 74 20 3d 20 31 20 74 6f |ith coun|t = 1 to|
|00004c80| 20 4e 75 6d 62 65 72 4f | 66 49 74 65 6d 73 0d 70 | NumberO|fItems.p|
|00004c90| 75 74 20 69 74 65 6d 20 | 63 6f 75 6e 74 20 6f 66 |ut item |count of|
|00004ca0| 20 4f 62 6a 65 63 74 4c | 69 73 74 20 69 6e 74 6f | ObjectL|ist into|
|00004cb0| 20 74 68 65 4f 62 6a 65 | 63 74 0d 67 65 74 20 6c | theObje|ct.get l|
|00004cc0| 6f 63 20 6f 66 20 74 68 | 65 4f 62 6a 65 63 74 0d |oc of th|eObject.|
|00004cd0| 73 65 74 20 6c 6f 63 20 | 6f 66 20 74 68 65 4f 62 |set loc |of theOb|
|00004ce0| 6a 65 63 74 20 74 6f 20 | 28 64 65 6c 74 61 58 20 |ject to |(deltaX |
|00004cf0| 2b 20 69 74 65 6d 20 31 | 20 6f 66 20 69 74 29 2c |+ item 1| of it),|
|00004d00| 20 28 64 65 6c 74 61 59 | 20 2b 20 69 74 65 6d 20 | (deltaY| + item |
|00004d10| 32 20 6f 66 20 69 74 29 | 0d 65 6e 64 20 72 65 70 |2 of it)|.end rep|
|00004d20| 65 61 74 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |eat.unlo|ck scree|
|00004d30| 6e 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |n.end if|.end rep|
|00004d40| 65 61 74 0d 75 6e 48 69 | 6c 69 74 65 50 61 6c 65 |eat.unHi|litePale|
|00004d50| 74 74 65 42 74 6e 0d 65 | 6e 64 20 6d 6f 76 65 4f |tteBtn.e|nd moveO|
|00004d60| 62 6a 65 63 74 73 0d 0d | 6f 6e 20 61 6c 69 67 6e |bjects..|on align|
|00004d70| 4f 62 6a 65 63 74 73 0d | 67 6c 6f 62 61 6c 20 4e |Objects.|global N|
|00004d80| 75 6d 62 65 72 4f 66 49 | 74 65 6d 73 2c 4f 62 6a |umberOfI|tems,Obj|
|00004d90| 65 63 74 4c 69 73 74 2c | 57 68 65 72 65 54 68 65 |ectList,|WhereThe|
|00004da0| 47 72 6f 75 70 49 73 0d | 63 68 65 63 6b 47 72 6f |GroupIs.|checkGro|
|00004db0| 75 70 0d 61 6e 73 77 65 | 72 20 22 41 6c 69 67 6e |up.answe|r "Align|
|00004dc0| 20 74 68 65 20 6f 62 6a | 65 63 74 73 20 6f 66 20 | the obj|ects of |
|00004dd0| 74 68 65 20 67 72 6f 75 | 70 20 68 6f 72 69 7a 6f |the grou|p horizo|
|00004de0| 6e 74 61 6c 6c 79 20 6f | 72 20 76 65 72 74 69 63 |ntally o|r vertic|
|00004df0| 61 6c 6c 79 3f 22 20 77 | 69 74 68 20 22 56 65 72 |ally?" w|ith "Ver|
|00004e00| 74 22 20 6f 72 20 22 48 | 6f 72 7a 22 20 6f 72 20 |t" or "H|orz" or |
|00004e10| 22 43 61 6e 63 65 6c 22 | 20 2d 2d 20 c6 0d 69 66 |"Cancel"| -- ..if|
|00004e20| 20 28 28 69 74 20 3d 20 | 65 6d 70 74 79 29 20 6f | ((it = |empty) o|
|00004e30| 72 20 28 69 74 20 3d 20 | 22 43 61 6e 63 65 6c 22 |r (it = |"Cancel"|
|00004e40| 29 29 20 74 68 65 6e 20 | 66 61 69 6c 20 2d 2d 20 |)) then |fail -- |
|00004e50| c6 0d 70 75 74 20 69 74 | 20 69 6e 74 6f 20 61 6c |..put it| into al|
|00004e60| 69 67 6e 6d 65 6e 74 0d | 69 66 20 61 6c 69 67 6e |ignment.|if align|
|00004e70| 6d 65 6e 74 20 3d 20 22 | 48 6f 72 7a 22 0d 74 68 |ment = "|Horz".th|
|00004e80| 65 6e 20 61 6e 73 77 65 | 72 20 22 41 6c 69 67 6e |en answe|r "Align|
|00004e90| 20 77 68 69 63 68 20 65 | 64 67 65 20 6f 66 20 74 | which e|dge of t|
|00004ea0| 68 65 20 6f 62 6a 65 63 | 74 73 3f 22 20 77 69 74 |he objec|ts?" wit|
|00004eb0| 68 20 22 52 69 67 68 74 | 22 20 6f 72 20 22 4c 65 |h "Right|" or "Le|
|00004ec0| 66 74 22 20 2d 2d 20 c6 | 0d 65 6c 73 65 20 61 6e |ft" -- .|.else an|
|00004ed0| 73 77 65 72 20 22 41 6c | 69 67 6e 20 77 68 69 63 |swer "Al|ign whic|
|00004ee0| 68 20 65 64 67 65 20 6f | 66 20 74 68 65 20 6f 62 |h edge o|f the ob|
|00004ef0| 6a 65 63 74 73 3f 22 20 | 77 69 74 68 20 22 42 6f |jects?" |with "Bo|
|00004f00| 74 74 6f 6d 22 20 6f 72 | 20 22 54 6f 70 22 20 2d |ttom" or| "Top" -|
|00004f10| 2d 20 c6 0d 70 75 74 20 | 69 74 20 69 6e 74 6f 20 |- ..put |it into |
|00004f20| 74 68 65 45 64 67 65 0d | 67 6f 20 57 68 65 72 65 |theEdge.|go Where|
|00004f30| 54 68 65 47 72 6f 75 70 | 49 73 0d 73 65 74 20 63 |TheGroup|Is.set c|
|00004f40| 75 72 73 6f 72 20 74 6f | 20 63 72 6f 73 73 0d 77 |ursor to| cross.w|
|00004f50| 61 69 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6d 6f |ait unti|l the mo|
|00004f60| 75 73 65 43 6c 69 63 6b | 0d 70 75 74 20 74 68 65 |useClick|.put the|
|00004f70| 20 63 6c 69 63 6b 48 20 | 69 6e 74 6f 20 68 6f 72 | clickH |into hor|
|00004f80| 7a 0d 70 75 74 20 74 68 | 65 20 63 6c 69 63 6b 56 |z.put th|e clickV|
|00004f90| 20 69 6e 74 6f 20 76 65 | 72 74 0d 6c 6f 63 6b 20 | into ve|rt.lock |
|00004fa0| 73 63 72 65 65 6e 0d 72 | 65 70 65 61 74 20 77 69 |screen.r|epeat wi|
|00004fb0| 74 68 20 63 6f 75 6e 74 | 20 3d 20 31 20 74 6f 20 |th count| = 1 to |
|00004fc0| 4e 75 6d 62 65 72 4f 66 | 49 74 65 6d 73 0d 64 6f |NumberOf|Items.do|
|00004fd0| 20 28 22 73 65 74 20 74 | 68 65 22 20 26 26 20 74 | ("set t|he" && t|
|00004fe0| 68 65 45 64 67 65 20 26 | 26 20 22 6f 66 20 69 74 |heEdge &|& "of it|
|00004ff0| 65 6d 20 63 6f 75 6e 74 | 20 6f 66 20 4f 62 6a 65 |em count| of Obje|
|00005000| 63 74 4c 69 73 74 20 74 | 6f 22 20 26 26 20 61 6c |ctList t|o" && al|
|00005010| 69 67 6e 6d 65 6e 74 29 | 0d 65 6e 64 20 72 65 70 |ignment)|.end rep|
|00005020| 65 61 74 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |eat.unlo|ck scree|
|00005030| 6e 0d 75 6e 48 69 6c 69 | 74 65 50 61 6c 65 74 74 |n.unHili|tePalett|
|00005040| 65 42 74 6e 0d 65 6e 64 | 20 61 6c 69 67 6e 4f 62 |eBtn.end| alignOb|
|00005050| 6a 65 63 74 73 0d 0d 6f | 6e 20 73 70 61 63 65 4f |jects..o|n spaceO|
|00005060| 62 6a 65 63 74 73 0d 67 | 6c 6f 62 61 6c 20 4e 75 |bjects.g|lobal Nu|
|00005070| 6d 62 65 72 4f 66 49 74 | 65 6d 73 2c 4f 62 6a 65 |mberOfIt|ems,Obje|
|00005080| 63 74 4c 69 73 74 2c 57 | 68 65 72 65 54 68 65 47 |ctList,W|hereTheG|
|00005090| 72 6f 75 70 49 73 0d 63 | 68 65 63 6b 47 72 6f 75 |roupIs.c|heckGrou|
|000050a0| 70 0d 61 6e 73 77 65 72 | 20 22 41 64 6a 75 73 74 |p.answer| "Adjust|
|000050b0| 20 74 68 65 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 | the hor|izontal |
|000050c0| 6f 72 20 76 65 72 74 69 | 63 61 6c 20 73 70 61 63 |or verti|cal spac|
|000050d0| 69 6e 67 20 62 65 74 77 | 65 65 6e 20 6f 62 6a 65 |ing betw|een obje|
|000050e0| 63 74 73 3f 22 c2 0d 77 | 69 74 68 20 22 56 65 72 |cts?"..w|ith "Ver|
|000050f0| 74 22 20 6f 72 20 22 48 | 6f 72 7a 22 20 6f 72 20 |t" or "H|orz" or |
|00005100| 22 43 61 6e 63 65 6c 22 | 20 2d 2d 20 c6 0d 69 66 |"Cancel"| -- ..if|
|00005110| 20 28 28 69 74 20 3d 20 | 65 6d 70 74 79 29 20 6f | ((it = |empty) o|
|00005120| 72 20 28 69 74 20 3d 20 | 22 43 61 6e 63 65 6c 22 |r (it = |"Cancel"|
|00005130| 29 29 20 74 68 65 6e 20 | 66 61 69 6c 2d 2d 20 c6 |)) then |fail-- .|
|00005140| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 64 69 72 |.put it |into dir|
|00005150| 65 63 74 69 6f 6e 0d 61 | 73 6b 20 22 45 6e 74 65 |ection.a|sk "Ente|
|00005160| 72 20 74 68 65 20 64 69 | 73 74 61 6e 63 65 20 62 |r the di|stance b|
|00005170| 65 74 77 65 65 6e 20 6f | 62 6a 65 63 74 73 20 69 |etween o|bjects i|
|00005180| 6e 20 70 69 78 65 6c 73 | 3a 22 20 77 69 74 68 20 |n pixels|:" with |
|00005190| 35 20 2d 2d 20 c6 0d 69 | 66 20 28 28 69 74 20 3d |5 -- ..i|f ((it =|
|000051a0| 20 65 6d 70 74 79 29 20 | 6f 72 20 28 74 68 65 20 | empty) |or (the |
|000051b0| 72 65 73 75 6c 74 20 3d | 20 22 43 61 6e 63 65 6c |result =| "Cancel|
|000051c0| 22 29 20 6f 72 20 28 69 | 74 20 69 73 20 6e 6f 74 |") or (i|t is not|
|000051d0| 20 61 6e 20 69 6e 74 65 | 67 65 72 29 29 20 74 68 | an inte|ger)) th|
|000051e0| 65 6e 20 66 61 69 6c 20 | 2d 2d 20 c6 0d 70 75 74 |en fail |-- ..put|
|000051f0| 20 69 74 20 69 6e 74 6f | 20 73 70 61 63 69 6e 67 | it into| spacing|
|00005200| 0d 69 66 20 64 69 72 65 | 63 74 69 6f 6e 20 3d 20 |.if dire|ction = |
|00005210| 22 56 65 72 74 22 20 74 | 68 65 6e 20 2d 2d 20 c6 |"Vert" t|hen -- .|
|00005220| 0d 69 66 20 73 70 61 63 | 69 6e 67 20 3e 20 30 20 |.if spac|ing > 0 |
|00005230| 74 68 65 6e 20 70 75 74 | 20 22 74 6f 70 2c 62 6f |then put| "top,bo|
|00005240| 74 74 6f 6d 22 20 69 6e | 74 6f 20 74 68 65 45 64 |ttom" in|to theEd|
|00005250| 67 65 73 20 2d 2d 20 c6 | 0d 65 6c 73 65 20 70 75 |ges -- .|.else pu|
|00005260| 74 20 22 62 6f 74 74 6f | 6d 2c 74 6f 70 22 20 69 |t "botto|m,top" i|
|00005270| 6e 74 6f 20 74 68 65 45 | 64 67 65 73 20 2d 2d 20 |nto theE|dges -- |
|00005280| c6 0d 65 6c 73 65 0d 69 | 66 20 73 70 61 63 69 6e |..else.i|f spacin|
|00005290| 67 20 3e 20 30 20 74 68 | 65 6e 20 70 75 74 20 22 |g > 0 th|en put "|
|000052a0| 6c 65 66 74 2c 72 69 67 | 68 74 22 20 69 6e 74 6f |left,rig|ht" into|
|000052b0| 20 74 68 65 45 64 67 65 | 73 20 2d 2d 20 c6 0d 65 | theEdge|s -- ..e|
|000052c0| 6c 73 65 20 70 75 74 20 | 22 72 69 67 68 74 2c 6c |lse put |"right,l|
|000052d0| 65 66 74 22 20 69 6e 74 | 6f 20 74 68 65 45 64 67 |eft" int|o theEdg|
|000052e0| 65 73 20 2d 2d 20 c6 0d | 65 6e 64 20 69 66 0d 70 |es -- ..|end if.p|
|000052f0| 75 74 20 69 74 65 6d 20 | 31 20 6f 66 20 74 68 65 |ut item |1 of the|
|00005300| 45 64 67 65 73 20 69 6e | 74 6f 20 6d 79 45 64 67 |Edges in|to myEdg|
|00005310| 65 0d 70 75 74 20 69 74 | 65 6d 20 32 20 6f 66 20 |e.put it|em 2 of |
|00005320| 74 68 65 45 64 67 65 73 | 20 69 6e 74 6f 20 79 6f |theEdges| into yo|
|00005330| 75 72 45 64 67 65 0d 67 | 6f 20 57 68 65 72 65 54 |urEdge.g|o WhereT|
|00005340| 68 65 47 72 6f 75 70 49 | 73 0d 6c 6f 63 6b 20 73 |heGroupI|s.lock s|
|00005350| 63 72 65 65 6e 0d 72 65 | 70 65 61 74 20 77 69 74 |creen.re|peat wit|
|00005360| 68 20 63 6f 75 6e 74 20 | 3d 20 32 20 74 6f 20 4e |h count |= 2 to N|
|00005370| 75 6d 62 65 72 4f 66 49 | 74 65 6d 73 0d 64 6f 20 |umberOfI|tems.do |
|00005380| 28 22 73 65 74 22 20 26 | 26 20 20 6d 79 45 64 67 |("set" &|& myEdg|
|00005390| 65 20 26 26 20 22 6f 66 | 20 28 69 74 65 6d 20 63 |e && "of| (item c|
|000053a0| 6f 75 6e 74 20 6f 66 20 | 4f 62 6a 65 63 74 4c 69 |ount of |ObjectLi|
|000053b0| 73 74 29 20 74 6f 20 28 | 22 20 c2 0d 26 26 20 79 |st) to (|" ..&& y|
|000053c0| 6f 75 72 45 64 67 65 20 | 26 26 20 20 22 6f 66 20 |ourEdge |&& "of |
|000053d0| 69 74 65 6d 20 28 63 6f | 75 6e 74 20 2d 20 31 29 |item (co|unt - 1)|
|000053e0| 20 6f 66 20 4f 62 6a 65 | 63 74 4c 69 73 74 29 20 | of Obje|ctList) |
|000053f0| 2b 20 73 70 61 63 69 6e | 67 22 29 0d 65 6e 64 20 |+ spacin|g").end |
|00005400| 72 65 70 65 61 74 0d 75 | 6e 6c 6f 63 6b 20 73 63 |repeat.u|nlock sc|
|00005410| 72 65 65 6e 0d 75 6e 48 | 69 6c 69 74 65 50 61 6c |reen.unH|ilitePal|
|00005420| 65 74 74 65 42 74 6e 0d | 65 6e 64 20 73 70 61 63 |etteBtn.|end spac|
|00005430| 65 4f 62 6a 65 63 74 73 | 0d 0d 6f 6e 20 64 75 70 |eObjects|..on dup|
|00005440| 6c 69 63 61 74 65 4f 62 | 6a 65 63 74 73 0d 67 6c |licateOb|jects.gl|
|00005450| 6f 62 61 6c 20 4e 75 6d | 62 65 72 4f 66 49 74 65 |obal Num|berOfIte|
|00005460| 6d 73 2c 20 4f 62 6a 65 | 63 74 4c 69 73 74 2c 20 |ms, Obje|ctList, |
|00005470| 57 68 65 72 65 54 68 65 | 47 72 6f 75 70 49 73 0d |WhereThe|GroupIs.|
|00005480| 63 68 65 63 6b 47 72 6f | 75 70 0d 63 68 65 63 6b |checkGro|up.check|
|00005490| 41 75 74 68 6f 72 69 6e | 67 0d 69 66 20 57 68 65 |Authorin|g.if Whe|
|000054a0| 72 65 54 68 65 47 72 6f | 75 70 49 73 20 3d 20 65 |reTheGro|upIs = e|
|000054b0| 6d 70 74 79 0d 74 68 65 | 6e 20 66 61 69 6c 20 22 |mpty.the|n fail "|
|000054c0| 59 6f 75 20 6e 65 65 64 | 20 74 6f 20 63 6f 70 79 |You need| to copy|
|000054d0| 20 61 20 67 72 6f 75 70 | 20 62 65 66 6f 72 65 20 | a group| before |
|000054e0| 79 6f 75 20 63 61 6e 20 | 70 61 73 74 65 20 69 74 |you can |paste it|
|000054f0| 2e 22 20 2d 2d 20 c6 0d | 61 6e 73 77 65 72 20 22 |." -- ..|answer "|
|00005500| 44 75 70 6c 69 63 61 74 | 65 20 74 68 65 20 63 75 |Duplicat|e the cu|
|00005510| 72 72 65 6e 74 20 67 72 | 6f 75 70 3f 22 20 77 69 |rrent gr|oup?" wi|
|00005520| 74 68 20 22 43 61 6e 63 | 65 6c 22 20 6f 72 20 22 |th "Canc|el" or "|
|00005530| 4f 4b 22 20 2d 2d 20 c6 | 0d 69 66 20 69 74 20 ad |OK" -- .|.if it .|
|00005540| 20 22 4f 4b 22 20 74 68 | 65 6e 20 66 61 69 6c 20 | "OK" th|en fail |
|00005550| 2d 2d 20 c6 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |-- ..set| cursor |
|00005560| 74 6f 20 77 61 74 63 68 | 0d 73 65 74 20 6c 6f 63 |to watch|.set loc|
|00005570| 6b 4d 65 73 73 61 67 65 | 73 20 74 6f 20 74 72 75 |kMessage|s to tru|
|00005580| 65 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 70 75 |e.lock s|creen.pu|
|00005590| 74 20 74 68 65 20 65 64 | 69 74 42 6b 67 6e 64 20 |t the ed|itBkgnd |
|000055a0| 69 6e 74 6f 20 6f 72 69 | 67 42 67 0d 72 65 70 65 |into ori|gBg.repe|
|000055b0| 61 74 20 77 69 74 68 20 | 63 6f 75 6e 74 20 3d 20 |at with |count = |
|000055c0| 4e 75 6d 62 65 72 4f 66 | 49 74 65 6d 73 20 64 6f |NumberOf|Items do|
|000055d0| 77 6e 20 74 6f 20 31 0d | 70 75 73 68 20 63 64 0d |wn to 1.|push cd.|
|000055e0| 67 6f 20 57 68 65 72 65 | 54 68 65 47 72 6f 75 70 |go Where|TheGroup|
|000055f0| 49 73 0d 70 75 74 20 69 | 74 65 6d 20 63 6f 75 6e |Is.put i|tem coun|
|00005600| 74 20 6f 66 20 4f 62 6a | 65 63 74 4c 69 73 74 20 |t of Obj|ectList |
|00005610| 69 6e 74 6f 20 74 68 65 | 4f 62 6a 65 63 74 0d 73 |into the|Object.s|
|00005620| 65 6c 65 63 74 20 74 68 | 65 4f 62 6a 65 63 74 0d |elect th|eObject.|
|00005630| 74 79 70 65 20 22 43 22 | 20 77 69 74 68 20 63 6f |type "C"| with co|
|00005640| 6d 6d 61 6e 64 4b 65 79 | 0d 70 6f 70 20 63 64 0d |mmandKey|.pop cd.|
|00005650| 73 65 74 20 65 64 69 74 | 42 6b 67 6e 64 20 74 6f |set edit|Bkgnd to|
|00005660| 20 28 77 6f 72 64 20 31 | 20 6f 66 20 74 68 65 4f | (word 1| of theO|
|00005670| 62 6a 65 63 74 20 3d 20 | 22 62 67 22 29 0d 74 79 |bject = |"bg").ty|
|00005680| 70 65 20 22 56 22 20 77 | 69 74 68 20 63 6d 64 4b |pe "V" w|ith cmdK|
|00005690| 65 79 2c 20 73 68 69 66 | 74 4b 65 79 20 2d 2d 20 |ey, shif|tKey -- |
|000056a0| c6 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 73 65 74 |..end re|peat.set|
|000056b0| 20 65 64 69 74 42 6b 67 | 6e 64 20 74 6f 20 6f 72 | editBkg|nd to or|
|000056c0| 69 67 42 67 0d 63 68 6f | 6f 73 65 20 62 72 6f 77 |igBg.cho|ose brow|
|000056d0| 73 65 20 74 6f 6f 6c 0d | 75 6e 6c 6f 63 6b 20 73 |se tool.|unlock s|
|000056e0| 63 72 65 65 6e 0d 75 6e | 48 69 6c 69 74 65 50 61 |creen.un|HilitePa|
|000056f0| 6c 65 74 74 65 42 74 6e | 0d 61 6e 73 77 65 72 20 |letteBtn|.answer |
|00005700| 22 4f 62 6a 65 63 74 73 | 20 64 75 70 6c 69 63 61 |"Objects| duplica|
|00005710| 74 65 64 2e 22 20 2d 2d | 20 c6 0d 65 6e 64 20 64 |ted." --| ..end d|
|00005720| 75 70 6c 69 63 61 74 65 | 4f 62 6a 65 63 74 73 0d |uplicate|Objects.|
|00005730| 0d 6f 6e 20 64 65 6c 65 | 74 65 4f 62 6a 65 63 74 |.on dele|teObject|
|00005740| 73 0d 67 6c 6f 62 61 6c | 20 4e 75 6d 62 65 72 4f |s.global| NumberO|
|00005750| 66 49 74 65 6d 73 2c 4f | 62 6a 65 63 74 4c 69 73 |fItems,O|bjectLis|
|00005760| 74 2c 57 68 65 72 65 54 | 68 65 47 72 6f 75 70 49 |t,WhereT|heGroupI|
|00005770| 73 0d 63 68 65 63 6b 47 | 72 6f 75 70 0d 63 68 65 |s.checkG|roup.che|
|00005780| 63 6b 41 75 74 68 6f 72 | 69 6e 67 0d 61 6e 73 77 |ckAuthor|ing.answ|
|00005790| 65 72 20 22 44 65 6c 65 | 74 65 20 74 68 65 20 63 |er "Dele|te the c|
|000057a0| 75 72 72 65 6e 74 20 67 | 72 6f 75 70 3f 22 20 77 |urrent g|roup?" w|
|000057b0| 69 74 68 20 22 4f 4b 22 | 20 6f 72 20 22 43 61 6e |ith "OK"| or "Can|
|000057c0| 63 65 6c 22 20 2d 2d 20 | c6 0d 69 66 20 28 69 74 |cel" -- |..if (it|
|000057d0| 20 ad 20 22 4f 4b 22 29 | 20 74 68 65 6e 20 66 61 | . "OK")| then fa|
|000057e0| 69 6c 2d 2d 20 c6 0d 67 | 6f 20 57 68 65 72 65 54 |il-- ..g|o WhereT|
|000057f0| 68 65 47 72 6f 75 70 49 | 73 0d 63 68 6f 6f 73 65 |heGroupI|s.choose|
|00005800| 20 62 75 74 74 6f 6e 20 | 74 6f 6f 6c 0d 6c 6f 63 | button |tool.loc|
|00005810| 6b 20 73 63 72 65 65 6e | 0d 72 65 70 65 61 74 20 |k screen|.repeat |
|00005820| 77 69 74 68 20 63 6f 75 | 6e 74 20 3d 20 31 20 74 |with cou|nt = 1 t|
|00005830| 6f 20 4e 75 6d 62 65 72 | 4f 66 49 74 65 6d 73 0d |o Number|OfItems.|
|00005840| 73 65 6c 65 63 74 20 69 | 74 65 6d 20 63 6f 75 6e |select i|tem coun|
|00005850| 74 20 6f 66 20 4f 62 6a | 65 63 74 4c 69 73 74 0d |t of Obj|ectList.|
|00005860| 74 79 70 65 20 6e 75 6d | 54 6f 43 68 61 72 28 38 |type num|ToChar(8|
|00005870| 29 20 20 2d 2d 20 c6 20 | 64 65 6c 65 74 65 20 6b |) -- . |delete k|
|00005880| 65 79 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 75 6e |ey.end r|epeat.un|
|00005890| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 75 6e 48 69 |lock scr|een.unHi|
|000058a0| 6c 69 74 65 50 61 6c 65 | 74 74 65 42 74 6e 0d 70 |litePale|tteBtn.p|
|000058b0| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 4f 62 |ut empty| into Ob|
|000058c0| 6a 65 63 74 4c 69 73 74 | 0d 70 75 74 20 65 6d 70 |jectList|.put emp|
|000058d0| 74 79 20 69 6e 74 6f 20 | 4e 75 6d 62 65 72 4f 66 |ty into |NumberOf|
|000058e0| 49 74 65 6d 73 0d 70 75 | 74 20 65 6d 70 74 79 20 |Items.pu|t empty |
|000058f0| 69 6e 74 6f 20 57 68 65 | 72 65 54 68 65 47 72 6f |into Whe|reTheGro|
|00005900| 75 70 49 73 0d 63 68 6f | 6f 73 65 20 62 72 6f 77 |upIs.cho|ose brow|
|00005910| 73 65 20 74 6f 6f 6c 0d | 65 6e 64 20 64 65 6c 65 |se tool.|end dele|
|00005920| 74 65 4f 62 6a 65 63 74 | 73 0d 0d 6f 6e 20 63 68 |teObject|s..on ch|
|00005930| 65 63 6b 41 75 74 68 6f | 72 69 6e 67 0d 69 66 20 |eckAutho|ring.if |
|00005940| 74 68 65 20 75 73 65 72 | 4c 65 76 65 6c 20 3c 20 |the user|Level < |
|00005950| 34 20 74 68 65 6e 20 73 | 65 74 20 75 73 65 72 4c |4 then s|et userL|
|00005960| 65 76 65 6c 20 74 6f 20 | 34 0d 69 66 20 74 68 65 |evel to |4.if the|
|00005970| 20 75 73 65 72 4c 65 76 | 65 6c 20 3c 20 34 20 74 | userLev|el < 4 t|
|00005980| 68 65 6e 0d 62 65 65 70 | 0d 61 6e 73 77 65 72 20 |hen.beep|.answer |
|00005990| 22 54 68 61 74 20 66 75 | 6e 63 74 69 6f 6e 20 72 |"That fu|nction r|
|000059a0| 65 71 75 69 72 65 73 20 | 75 73 65 72 20 6c 65 76 |equires |user lev|
|000059b0| 65 6c 20 34 20 28 41 75 | 74 68 6f 72 69 6e 67 29 |el 4 (Au|thoring)|
|000059c0| 2e 22 20 2d 2d 20 c6 0d | 65 78 69 74 20 74 6f 20 |." -- ..|exit to |
|000059d0| 48 79 70 65 72 43 61 72 | 64 0d 65 6e 64 20 69 66 |HyperCar|d.end if|
|000059e0| 0d 65 6e 64 20 63 68 65 | 63 6b 41 75 74 68 6f 72 |.end che|ckAuthor|
|000059f0| 69 6e 67 0d 0d 2d 2d 2d | 2d 2d 20 20 45 78 70 6f |ing..---|-- Expo|
|00005a00| 72 74 20 54 6f 20 54 65 | 78 74 46 69 6c 65 20 48 |rt To Te|xtFile H|
|00005a10| 61 6e 64 6c 65 72 73 20 | 20 2d 2d 2d 2d 2d 2d 2d |andlers | -------|
|00005a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a30| 2d 2d 2d 2d 2d 2d 2d 0d | 0d 6f 6e 20 64 6f 42 61 |-------.|.on doBa|
|00005a40| 63 6b 67 72 6f 75 6e 64 | 0d 2d 2d 20 74 68 69 73 |ckground|.-- this|
|00005a50| 20 6d 65 73 73 61 67 65 | 20 69 73 20 73 65 6e 74 | message| is sent|
|00005a60| 20 77 68 65 6e 20 74 68 | 65 20 22 54 68 69 73 20 | when th|e "This |
|00005a70| 42 61 63 6b 67 72 6f 75 | 6e 64 22 20 62 75 74 74 |Backgrou|nd" butt|
|00005a80| 6f 6e 20 6f 66 0d 2d 2d | 20 74 68 65 20 70 61 6c |on of.--| the pal|
|00005a90| 65 74 74 65 20 69 73 20 | 63 6c 69 63 6b 65 64 2e |ette is |clicked.|
|00005aa0| 0d 67 6c 6f 62 61 6c 20 | 65 78 70 6f 72 74 43 61 |.global |exportCa|
|00005ab0| 72 64 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |rd.set c|ursor to|
|00005ac0| 20 77 61 74 63 68 0d 70 | 75 74 20 65 6d 70 74 79 | watch.p|ut empty|
|00005ad0| 20 69 6e 74 6f 20 74 68 | 65 46 69 65 6c 64 73 0d | into th|eFields.|
|00005ae0| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00005af0| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00005b00| 6f 66 20 62 67 20 66 6c | 64 73 0d 70 75 74 20 74 |of bg fl|ds.put t|
|00005b10| 68 65 20 73 68 6f 72 74 | 20 6e 61 6d 65 20 6f 66 |he short| name of|
|00005b20| 20 62 67 20 66 6c 64 20 | 69 20 26 20 22 2c 22 20 | bg fld |i & "," |
|00005b30| 26 26 20 22 69 64 22 20 | 26 26 20 c2 0d 74 68 65 |&& "id" |&& ..the|
|00005b40| 20 69 64 20 6f 66 20 62 | 67 20 66 6c 64 20 69 20 | id of b|g fld i |
|00005b50| 26 20 72 65 74 75 72 6e | 20 61 66 74 65 72 20 74 |& return| after t|
|00005b60| 68 65 46 69 65 6c 64 73 | 0d 65 6e 64 20 72 65 70 |heFields|.end rep|
|00005b70| 65 61 74 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |eat.put |the numb|
|00005b80| 65 72 20 6f 66 20 6d 61 | 72 6b 65 64 20 63 64 73 |er of ma|rked cds|
|00005b90| 20 69 6e 74 6f 20 6e 75 | 6d 4d 61 72 6b 65 64 0d | into nu|mMarked.|
|00005ba0| 70 75 74 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |put the |number o|
|00005bb0| 66 20 74 68 69 73 20 62 | 67 20 69 6e 74 6f 20 74 |f this b|g into t|
|00005bc0| 68 69 73 42 67 0d 70 75 | 74 20 74 68 65 20 73 68 |hisBg.pu|t the sh|
|00005bd0| 6f 72 74 20 6e 61 6d 65 | 20 6f 66 20 74 68 69 73 |ort name| of this|
|00005be0| 20 73 74 61 63 6b 20 69 | 6e 74 6f 20 73 74 61 63 | stack i|nto stac|
|00005bf0| 6b 54 6f 45 78 70 6f 72 | 74 0d 2d 2d 20 77 65 27 |kToExpor|t.-- we'|
|00005c00| 72 65 20 66 69 6e 69 73 | 68 65 64 20 77 69 74 68 |re finis|hed with|
|00005c10| 20 74 68 65 20 70 61 6c | 65 74 74 65 2c 20 73 6f | the pal|ette, so|
|00005c20| 20 64 69 73 6d 69 73 73 | 20 69 74 0d 4b 69 6c 6c | dismiss| it.Kill|
|00005c30| 45 78 70 6f 72 74 50 61 | 6c 65 74 74 65 0d 76 69 |ExportPa|lette.vi|
|00005c40| 73 75 61 6c 20 73 63 72 | 6f 6c 6c 20 6c 65 66 74 |sual scr|oll left|
|00005c50| 0d 67 6f 20 65 78 70 6f | 72 74 43 61 72 64 0d 70 |.go expo|rtCard.p|
|00005c60| 75 74 20 74 68 65 46 69 | 65 6c 64 73 20 69 6e 74 |ut theFi|elds int|
|00005c70| 6f 20 63 64 20 66 6c 64 | 20 22 46 69 65 6c 64 4c |o cd fld| "FieldL|
|00005c80| 69 73 74 22 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |ist".put| empty i|
|00005c90| 6e 74 6f 20 63 64 20 66 | 6c 64 20 22 45 78 70 6f |nto cd f|ld "Expo|
|00005ca0| 72 74 4c 69 73 74 22 0d | 70 75 74 20 22 42 61 63 |rtList".|put "Bac|
|00005cb0| 6b 67 72 6f 75 6e 64 22 | 20 26 26 20 74 68 69 73 |kground"| && this|
|00005cc0| 42 67 20 26 26 20 22 6f | 66 20 73 74 61 63 6b 3a |Bg && "o|f stack:|
|00005cd0| 22 20 69 6e 74 6f 20 63 | 64 20 66 6c 64 20 22 54 |" into c|d fld "T|
|00005ce0| 68 65 42 6b 67 6e 64 22 | 20 2d 2d 20 c6 0d 70 75 |heBkgnd"| -- ..pu|
|00005cf0| 74 20 73 74 61 63 6b 54 | 6f 45 78 70 6f 72 74 20 |t stackT|oExport |
|00005d00| 69 6e 74 6f 20 63 64 20 | 66 6c 64 20 22 53 74 61 |into cd |fld "Sta|
|00005d10| 63 6b 4e 61 6d 65 22 0d | 69 66 20 6e 75 6d 4d 61 |ckName".|if numMa|
|00005d20| 72 6b 65 64 20 3d 20 30 | 20 74 68 65 6e 0d 73 65 |rked = 0| then.se|
|00005d30| 6e 64 20 6d 6f 75 73 65 | 55 70 20 74 6f 20 63 64 |nd mouse|Up to cd|
|00005d40| 20 62 74 6e 20 22 41 6c | 6c 20 43 61 72 64 73 22 | btn "Al|l Cards"|
|00005d50| 20 2d 2d 20 c6 0d 68 69 | 64 65 20 63 64 20 62 74 | -- ..hi|de cd bt|
|00005d60| 6e 20 22 4d 61 72 6b 65 | 64 20 43 61 72 64 73 22 |n "Marke|d Cards"|
|00005d70| 20 2d 2d 20 c6 0d 65 6c | 73 65 20 73 68 6f 77 20 | -- ..el|se show |
|00005d80| 63 64 20 62 74 6e 20 22 | 4d 61 72 6b 65 64 20 43 |cd btn "|Marked C|
|00005d90| 61 72 64 73 22 20 2d 2d | 20 c6 0d 65 6e 64 20 64 |ards" --| ..end d|
|00005da0| 6f 42 61 63 6b 67 72 6f | 75 6e 64 0d 0d 6f 6e 20 |oBackgro|und..on |
|00005db0| 64 6f 43 61 6e 63 65 6c | 0d 2d 2d 20 74 68 69 73 |doCancel|.-- this|
|00005dc0| 20 6d 65 73 73 61 67 65 | 20 69 73 20 73 65 6e 74 | message| is sent|
|00005dd0| 20 77 68 65 6e 20 74 68 | 65 20 22 43 61 6e 63 65 | when th|e "Cance|
|00005de0| 6c 22 20 62 75 74 74 6f | 6e 20 6f 66 0d 2d 2d 20 |l" butto|n of.-- |
|00005df0| 74 68 65 20 70 61 6c 65 | 74 74 65 20 69 73 20 63 |the pale|tte is c|
|00005e00| 6c 69 63 6b 65 64 2e 0d | 67 6c 6f 62 61 6c 20 65 |licked..|global e|
|00005e10| 78 70 6f 72 74 43 61 72 | 64 0d 4b 69 6c 6c 45 78 |xportCar|d.KillEx|
|00005e20| 70 6f 72 74 50 61 6c 65 | 74 74 65 20 2d 2d 20 64 |portPale|tte -- d|
|00005e30| 69 73 6d 69 73 73 20 74 | 68 65 20 70 61 6c 65 74 |ismiss t|he palet|
|00005e40| 74 65 0d 67 6f 20 65 78 | 70 6f 72 74 43 61 72 64 |te.go ex|portCard|
|00005e50| 0d 65 6e 64 20 64 6f 43 | 61 6e 63 65 6c 0d 0d 6f |.end doC|ancel..o|
|00005e60| 6e 20 53 68 6f 77 45 78 | 70 6f 72 74 50 61 6c 65 |n ShowEx|portPale|
|00005e70| 74 74 65 0d 2d 2d 20 63 | 72 65 61 74 65 20 74 68 |tte.-- c|reate th|
|00005e80| 65 20 70 61 6c 65 74 74 | 65 20 77 69 6e 64 6f 77 |e palett|e window|
|00005e90| 0d 67 6c 6f 62 61 6c 20 | 48 61 76 65 45 78 70 6f |.global |HaveExpo|
|00005ea0| 72 74 50 61 6c 65 74 74 | 65 2c 45 78 70 6f 72 74 |rtPalett|e,Export|
|00005eb0| 50 61 6c 65 74 74 65 4c | 6f 63 2c 74 68 69 73 42 |PaletteL|oc,thisB|
|00005ec0| 67 4e 75 6d 62 65 72 2c | 74 6f 74 61 6c 42 67 73 |gNumber,|totalBgs|
|00005ed0| 0d 69 66 20 48 61 76 65 | 45 78 70 6f 72 74 50 61 |.if Have|ExportPa|
|00005ee0| 6c 65 74 74 65 20 69 73 | 20 22 74 72 75 65 22 20 |lette is| "true" |
|00005ef0| 74 68 65 6e 20 65 78 69 | 74 20 53 68 6f 77 45 78 |then exi|t ShowEx|
|00005f00| 70 6f 72 74 50 61 6c 65 | 74 74 65 0d 69 66 20 45 |portPale|tte.if E|
|00005f10| 78 70 6f 72 74 50 61 6c | 65 74 74 65 4c 6f 63 20 |xportPal|etteLoc |
|00005f20| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00005f30| 6e 0d 70 75 74 20 69 74 | 65 6d 20 31 20 6f 66 20 |n.put it|em 1 of |
|00005f40| 45 78 70 6f 72 74 50 61 | 6c 65 74 74 65 4c 6f 63 |ExportPa|letteLoc|
|00005f50| 20 69 6e 74 6f 20 74 68 | 65 4c 65 66 74 0d 70 75 | into th|eLeft.pu|
|00005f60| 74 20 69 74 65 6d 20 32 | 20 6f 66 20 45 78 70 6f |t item 2| of Expo|
|00005f70| 72 74 50 61 6c 65 74 74 | 65 4c 6f 63 20 69 6e 74 |rtPalett|eLoc int|
|00005f80| 6f 20 74 68 65 54 6f 70 | 0d 65 6c 73 65 0d 70 75 |o theTop|.else.pu|
|00005f90| 74 20 28 69 74 65 6d 20 | 31 20 6f 66 20 6c 6f 63 |t (item |1 of loc|
|00005fa0| 20 6f 66 20 63 64 20 77 | 69 6e 64 6f 77 20 2b 20 | of cd w|indow + |
|00005fb0| 31 33 30 29 20 69 6e 74 | 6f 20 74 68 65 4c 65 66 |130) int|o theLef|
|00005fc0| 74 0d 70 75 74 20 28 69 | 74 65 6d 20 32 20 6f 66 |t.put (i|tem 2 of|
|00005fd0| 20 6c 6f 63 20 6f 66 20 | 63 64 20 77 69 6e 64 6f | loc of |cd windo|
|00005fe0| 77 20 2b 20 32 32 30 29 | 20 69 6e 74 6f 20 74 68 |w + 220)| into th|
|00005ff0| 65 54 6f 70 0d 65 6e 64 | 20 69 66 0d 45 78 70 6f |eTop.end| if.Expo|
|00006000| 72 74 50 61 6c 65 74 74 | 65 20 22 45 78 70 6f 72 |rtPalett|e "Expor|
|00006010| 74 20 66 69 65 6c 64 73 | 20 6f 66 20 77 68 61 74 |t fields| of what|
|00006020| 20 62 61 63 6b 67 72 6f | 75 6e 64 3f 22 2c 20 c2 | backgro|und?", .|
|00006030| 0d 22 54 68 69 73 20 42 | 61 63 6b 67 72 6f 75 6e |."This B|ackgroun|
|00006040| 64 22 2c 22 43 61 6e 63 | 65 6c 22 2c 74 68 65 4c |d","Canc|el",theL|
|00006050| 65 66 74 2c 74 68 65 54 | 6f 70 20 2d 2d 20 c6 0d |eft,theT|op -- ..|
|00006060| 70 75 74 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |put the |number o|
|00006070| 66 20 74 68 69 73 20 62 | 67 20 69 6e 74 6f 20 74 |f this b|g into t|
|00006080| 68 69 73 42 67 4e 75 6d | 62 65 72 0d 70 75 74 20 |hisBgNum|ber.put |
|00006090| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 67 |the numb|er of bg|
|000060a0| 73 20 69 6e 74 6f 20 74 | 6f 74 61 6c 42 67 73 0d |s into t|otalBgs.|
|000060b0| 65 6e 64 20 53 68 6f 77 | 45 78 70 6f 72 74 50 61 |end Show|ExportPa|
|000060c0| 6c 65 74 74 65 0d 0d 6f | 6e 20 4b 69 6c 6c 45 78 |lette..o|n KillEx|
|000060d0| 70 6f 72 74 50 61 6c 65 | 74 74 65 0d 2d 2d 20 64 |portPale|tte.-- d|
|000060e0| 69 73 70 6f 73 65 20 6f | 66 20 74 68 65 20 70 61 |ispose o|f the pa|
|000060f0| 6c 65 74 74 65 20 77 69 | 6e 64 6f 77 0d 67 6c 6f |lette wi|ndow.glo|
|00006100| 62 61 6c 20 48 61 76 65 | 45 78 70 6f 72 74 50 61 |bal Have|ExportPa|
|00006110| 6c 65 74 74 65 2c 65 78 | 70 6f 72 74 43 61 72 64 |lette,ex|portCard|
|00006120| 0d 69 66 20 48 61 76 65 | 45 78 70 6f 72 74 50 61 |.if Have|ExportPa|
|00006130| 6c 65 74 74 65 20 69 73 | 20 22 74 72 75 65 22 20 |lette is| "true" |
|00006140| 74 68 65 6e 0d 68 69 64 | 65 20 77 69 6e 64 6f 77 |then.hid|e window|
|00006150| 20 22 45 78 70 6f 72 74 | 50 61 6c 65 74 74 65 22 | "Export|Palette"|
|00006160| 0d 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 22 45 |.close w|indow "E|
|00006170| 78 70 6f 72 74 50 61 6c | 65 74 74 65 22 0d 65 6e |xportPal|ette".en|
|00006180| 64 20 69 66 0d 70 75 74 | 20 47 65 74 4c 6f 6e 67 |d if.put| GetLong|
|00006190| 4e 61 6d 65 28 65 78 70 | 6f 72 74 43 61 72 64 29 |Name(exp|ortCard)|
|000061a0| 20 69 6e 74 6f 20 70 61 | 74 68 54 6f 45 78 70 6f | into pa|thToExpo|
|000061b0| 72 74 43 61 72 64 0d 69 | 66 20 70 61 74 68 54 6f |rtCard.i|f pathTo|
|000061c0| 45 78 70 6f 72 74 43 61 | 72 64 20 69 73 20 69 6e |ExportCa|rd is in|
|000061d0| 20 74 68 65 20 53 74 61 | 63 6b 73 49 6e 55 73 65 | the Sta|cksInUse|
|000061e0| 0d 74 68 65 6e 20 73 74 | 6f 70 20 75 73 69 6e 67 |.then st|op using|
|000061f0| 20 73 74 61 63 6b 20 70 | 61 74 68 54 6f 45 78 70 | stack p|athToExp|
|00006200| 6f 72 74 43 61 72 64 0d | 65 6e 64 20 4b 69 6c 6c |ortCard.|end Kill|
|00006210| 45 78 70 6f 72 74 50 61 | 6c 65 74 74 65 0d 0d 66 |ExportPa|lette..f|
|00006220| 75 6e 63 74 69 6f 6e 20 | 47 65 74 4c 6f 6e 67 4e |unction |GetLongN|
|00006230| 61 6d 65 20 6c 6f 6e 67 | 4e 61 6d 65 0d 2d 2d 20 |ame long|Name.-- |
|00006240| 67 69 76 65 6e 20 74 68 | 65 20 6c 6f 6e 67 20 6e |given th|e long n|
|00006250| 61 6d 65 20 6f 66 20 61 | 20 63 61 72 64 2c 20 72 |ame of a| card, r|
|00006260| 65 74 75 72 6e 20 74 68 | 65 20 66 75 6c 6c 20 70 |eturn th|e full p|
|00006270| 61 74 68 20 6f 66 20 74 | 68 65 20 73 74 61 63 6b |ath of t|he stack|
|00006280| 0d 67 65 74 20 6c 61 73 | 74 20 77 6f 72 64 20 6f |.get las|t word o|
|00006290| 66 20 6c 6f 6e 67 4e 61 | 6d 65 0d 64 65 6c 65 74 |f longNa|me.delet|
|000062a0| 65 20 66 69 72 73 74 20 | 63 68 61 72 20 6f 66 20 |e first |char of |
|000062b0| 69 74 0d 64 65 6c 65 74 | 65 20 6c 61 73 74 20 63 |it.delet|e last c|
|000062c0| 68 61 72 20 6f 66 20 69 | 74 0d 72 65 74 75 72 6e |har of i|t.return|
|000062d0| 20 69 74 0d 65 6e 64 20 | 47 65 74 4c 6f 6e 67 4e | it.end |GetLongN|
|000062e0| 61 6d 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ame.....|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.